if (!mail($to,$subject,$body,$headers))
{
echo "We couldn't sign you up at this time. Please try again later.";
if(!$email)
{
//register into database
$register = mysql_query("INSERT INTO `register2`(`username`, `password`, `email`, `code`, `0`, `active`, `First_name`, `Last_name`, `Mobile_number`, `Landline_number`, `sex`) VALUES ('$username', '$password', '$email', '$code', '0', '$active', '$name', '$lname', '$mobile', '$lline', '$sex')");
$result = mysql_query($register);
if($result!=0)
{
@session_start();
$_SESSION["email"]=$_POST["email"];
echo "You have been registered successfully! Please check your email ($email) to activate your account";
header("location:signup2.php");
}
}
}
如何执行它。意味着我有这 3 个条件如何执行它,问题是我没有在我的 phpmyadmin 中插入数据。请帮助我....