PHP with MySQL syntax error..?

  • Thread starter Thread starter ben
  • Start date Start date
B

ben

Guest
I am getting this error...

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 'WHERE `gamename`='Aero Acrobat'' at line

Here is the code used....

mysql_query("UPDATE `games` SET `voters` = ".$voters." WHERE `gamename`='".$gamename."'") or die(mysql_error());

What am I doing wrong?

Thanks!
 
Back
Top