hi guys.
i get an error with this code, here is a part of it:
if(!$sql){
echo 'There has been an error creating your account. Please contact the webmaster.';if (!$sql2) print 'please try again';
elseif {
if(!$sql2){
echo 'There has been an error creating your account. Please contact the webmaster.';if (!$sql2) print 'please try again';
} else {
$userid = mysql_insert_id();
// Let's mail the user!
$subject = "Your Membership at MyWebsite!";
$message = "Dear $first_name $last_name,
Thank you for signing up at our website, http://v491400027/v%200.0.1/
You are two steps away from logging in and accessing our new game.
To activate your membership, please click here: http://v491400027/v%200.0.1/activate.php?id=$userid&code=$db_password
Once you activate your memebership, you will be able to login with the following information:
Username: $username
Password: $random_password
Thanks!
Alex
Please do not reply!";
mail($email_address, $subject, $message, "From: Music MMORPG <music@localhost.com>\nX-Mailer: PHP/" . phpversion());
echo 'Your membership information has been mailed to your email address! Please check it and follow the directions!';
}
}
}
Parse error: parse error, unexpected '{', expecting '(' in c:\program files\easyphp1-7\www\v 0.0.1\register.php on line 112
which is this line:
elseif {
the mail does not get sent either, (yes i have my SMTP and all set up, and it works)
thank you