hi,
the following results in "Invalid SQL syntax error".
I tried a few different options but none seemed to have worked. Would someone please help. I believe the error is around/after the WHERE statement.
$query = "UPDATE ATAMA_users SET ".
"user_name = \"" . $formVars["username"] . "\", " .
"user_passwd = \"" . $formVars["loginPassword"] . "\", " .
"user_firstname = \"" . $formVars["firstname"] . "\", " .
"user_lastname = \"" . $formVars["lastname"] . "\", " .
"user_email = \"" . $formVars["email"] . "\", " .
"user_phone = \"" . $formVars["phone"] . "\" .
" WHERE user_id = " . $userID . "\"" ;
the following results in "Invalid SQL syntax error".
I tried a few different options but none seemed to have worked. Would someone please help. I believe the error is around/after the WHERE statement.
$query = "UPDATE ATAMA_users SET ".
"user_name = \"" . $formVars["username"] . "\", " .
"user_passwd = \"" . $formVars["loginPassword"] . "\", " .
"user_firstname = \"" . $formVars["firstname"] . "\", " .
"user_lastname = \"" . $formVars["lastname"] . "\", " .
"user_email = \"" . $formVars["email"] . "\", " .
"user_phone = \"" . $formVars["phone"] . "\" .
" WHERE user_id = " . $userID . "\"" ;