Page 1 of 1

SQL error

Posted: Sun Feb 11, 2007 7:12 pm
by psychotomus
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 'Manchester' AND casino='Slots'' at line 1

Code: Select all

mysql_query("UPDATE casinos SET owner='$slots->owner' WHERE owner='0 AND location='$slots->location' AND casino='Slots'") or die(mysql_error());
edit found. =)

didnt have '0'

Posted: Sun Feb 11, 2007 7:52 pm
by feyd
Missing a single quote after the zero.