Jump to content

Syntax Error Why?


mme

Recommended Posts

Hi

 

I am trying to update some values in the database however I keep getting syntax errors:

 

mysql_query("UPDATE updates SET ('file' = 'new.exe2', 'filename' = 'new.exe2', 'serverfile' = 'http://static.php.net/www.php.net/images/php.gif', 'md5' = '97f3c717da19b4697ae9884e67aab123') WHERE 'updateid' = 10;") or die(mysql_error());

 

However I keep getting this error:

 

#1064 - 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 '('file' = 'new.exe2', 'filename' = 'new.exe2', 'serverfile' = 'http://static.php' at line 1

 

What is wrong with the code?

 

Thanks,

 

mme

Link to comment
https://forums.phpfreaks.com/topic/217548-syntax-error-why/
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.