23.05.2010, 11:05
What is right usage of mysql_query, UPDATE. I got this error: 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'query4' at line 1.' with my code
Thanks.
Код:
$query4 = mysql_query("UPDATE users SET `Admin Level` = `1` WHERE `Username` = '$user'"); if(!mysql_query(query4)) { echo mysql_error(); }