Jump to content

Php Update Query Help


Hypersource

Recommended Posts

UPDATE users SET club='$ID', write='0', editmem='0', till='0' WHERE user_name='$tik',

 

I get

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 'write='0', editmem='0', till='0' WHERE user_name='Tester'' at line 1

 

 

help?

Link to comment
https://forums.phpfreaks.com/topic/272420-php-update-query-help/
Share on other sites

The point in your query where the error is being reported at - near 'write ... is because mysql found a keyword in a location where it is not permitted. Write is a reserved keyword. You should change your column name to something else or you must enclose it in back-ticks `write` every time you use it in a query.

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.