SQL error

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

SQL error

Post 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'
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Missing a single quote after the zero.
Post Reply