fireman Posted December 16, 2003 Share Posted December 16, 2003 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 More sharing options...
nabeel21 Posted December 16, 2003 Share Posted December 16, 2003 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 Link to comment https://forums.phpfreaks.com/topic/1506-simple-update-syntax-propblem/#findComment-4960 Share on other sites More sharing options...
fireman Posted December 16, 2003 Author Share Posted December 16, 2003 strange but true--that did the trick nabeel. I thank you!! Link to comment https://forums.phpfreaks.com/topic/1506-simple-update-syntax-propblem/#findComment-4965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.