Jump to content

simple UPDATE syntax propblem


fireman

Recommended Posts

ok, I know this is basic, but what can i say, I\'m a fireman.

 

I want to UPDATE a row based upon input from a user. what is wrong with the following code?


$query = ("UPDATE votes SET prop=\'$prop\', month=\'$month\', day=\'$day\', year=\'$year\', desc=\'$desc\', vote=\'$vote\' WHERE id=\'$id\'");

 

That\'s it, simple huh?

 

Any help would be most appreciated

Link to comment
https://forums.phpfreaks.com/topic/1506-simple-update-syntax-propblem/
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.