Jump to content

[SOLVED] What does this mean?


thefollower

Recommended Posts

I keep 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 CountryID='1'' at line 1

 

Not sure what it means though.. this is my query:

 

$UpdateTreasury = "UPDATE countries SET Treasury=Treasury+$Price WHERE CountryID='$CountryID'";
$treasuryresult = mysql_query($UpdateTreasury) or die(mysql_error());

 

Can't see why its not allowing the WHERE clause.. :(

Any one know why?

Link to comment
https://forums.phpfreaks.com/topic/78133-solved-what-does-this-mean/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.