MySQL syntax error?
Posted: Tue Dec 23, 2008 9:47 pm
I'm getting this error, and have no idea why
On this statementYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key='e6b937ccb04627ca9ce04fc06b4c550b' WHERE username='test'' at line 1
UPDATE r_users SET key='e6b937ccb04627ca9ce04fc06b4c550b' WHERE username='test'
Code: Select all
$query = 'UPDATE r_users SET key=\\''.$key.'\\' WHERE username=\\''.$username.'\\'';