Good morning, all. I’m sort of new at php and have been teaching myself with online tutorials and such. I’m getting the hang of it so far, but last night I ran into a problem that I can’t seem to resolve. Here is the code below:
[CODE]if ( (strlen($getemail) >= 7) && (strstr($getemail), ‘@’) && (strstr($getemail), ‘.’)){
require(“connect.php”);
$query = mysql_query(“SELECT * FROM members WHERE username=’$getuser'”);
$numrows = mysql_num_rows($query);
if ($numrows == 0){
$query = mysql_query(“SELECT * FROM members WHERE email=’$getemail'”);
$numrows = mysql_num_rows($query);
if ($numrows == 0){
$password = md5(md5(“[salt]”.$password.”[salt]”));
$date = date(‘F d, Y’);
$code = md5(rand());
mysql_query (“INSERT INTO members VALUES (
”, ‘$getuser’, ‘$password’, ‘$getemail’, ”, ‘$date’, ‘0’, ‘$code’, ‘$getfirstname’, ‘$getlastname’, ‘$lastloginip’, ‘$getbirthmonth’, ‘$getbirthday’, $getbirthyear’, ‘$getgender’
)”)
$query = mysql_query(“SELECT * FROM members WHERE username=’$getuser'”)
}
else {
$errormsg = “There is already a user with that email address.”;
}
}
else {
$errormsg = “There is already a user with that username.”;
}
mysql_close();
}
else {
$errormsg = “You must enter a valid email address to register.”
}
The error I’m receiving is:
“Parse error: syntax error, unexpected ‘,’ in /[address here]/register.php on line 35”
Line 35 is the very first line in the given code. I don’t know what it’s trying to tell me.