Jump to content

Archived

This topic is now archived and is closed to further replies.

fireman

simple UPDATE syntax propblem

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

Share this post


Link to post
Share on other sites

I think this desc column is causing a problem. I remember having this kind of problem but when i changed the column name to something else... it worked.

 

Please give it a try.

 

goodluck

Share this post


Link to post
Share on other sites

×

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.