23.05.2010, 17:36
There cannot be spaces in field names as said above.
The proper syntax would be:
And then the check would be:
or
The proper syntax would be:
PHP код:
mysql_query('UPDATE `users` SET AdminLevel = "1" WHERE Username = "'.$user.'"');
Код:
$query4 = mysql_query('UPDATE `users` SET AdminLevel = "1" WHERE Username = "'.$user.'"'); if(!$query4) { echo mysql_error(); }
Код:
if($query4 == 0) { code }