PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
mysql_connect ('XXremovedXX','XXremovedXX','XXremovedXX')or die('Could not connect: ' . mysql_error());
mysql_select_db ('XXremovedXX');
$query0 = "UPDATE users SET order='2' WHERE email = 'emailertje@gmail.com'";
mysql_query ($query0) or die(mysql_error());
?>
gives me:
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 'order='2' WHERE email = 'emailertje@gmail.com'' at line 1
And I really haven't got any idea what I'm doing wrong