Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
psychotomus
Forum Contributor
Posts: 487 Joined: Fri Jul 11, 2003 1:59 am
Post
by psychotomus » Sun Feb 11, 2007 7:12 pm
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'
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Feb 11, 2007 7:52 pm
Missing a single quote after the zero.