This seems to be a really simple request, but somehow I get errors all the time ...
Basically, I just got a bunch of information from the user, and now I'm going to update their record in the table usersin one query:
UPDATE usersSET timezone= 'America / New_York', SET updates= 'NO', SET verified= 'YES' WHERE id= '1'
However, after executing this error, I get the following error: "You have an error in the SQL syntax, check the manual that matches the version of your MySQL server for the correct syntax to use next to" SET updates= "NO", SET verified= "YES" WHERE id= ' 1 '' on line 1 ".
Any help is greatly appreciated.
source
share