View Single Post
Old 11-27-2003, 10:27 AM   #5 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Quote:
Originally posted by joe_bruin
wtf are you talking about?

you're supposed to quote your strings, but not identifiers.

PHP Code:
$query "UPDATE users SET age='$age' WHERE username='$username'"
Actually, it is a good idea to use backticks on your column names, in the case you should happen to use a MySQL reserved word. I refer you to the MySQL manual section on <reserved words>.
bdl is offline   Reply With Quote