update sql
Posted: Mon Jul 30, 2007 7:53 pm
Can anyone tell me what the problem with this update statment is:
I have this error:
Parse error: syntax error, unexpected T_STRING in G:\xampp\htdocs\bethel\1purpose_bethel\forgotPass.php on line 37
Thank You
Kevin
Code: Select all
$userName = mysql_real_escape_string($userName);
$myPass = mysql_real_escape_string($myPass);
$myEmail = $_POST['email'];
$myEmail = mysql_real_escape_string($myEmail);
UPDATE user //line 37
SET username = $userName, pass = $myPass
WHERE email = $myEmail;Parse error: syntax error, unexpected T_STRING in G:\xampp\htdocs\bethel\1purpose_bethel\forgotPass.php on line 37
Thank You
Kevin