dizzy1 Posted February 18, 2009 Share Posted February 18, 2009 Hi Basically All i want to do is this: $mysql = mysql_query(" UPDATE `Persons` SET `Name`='Dave', `Car`='Ford' `ID`='$NewID' WHERE `ID`='$OLDID' LIMIT 1 "); Dont get why it aint working. PLEASE HELP ??? THANKS IN ADVANCE. Link to comment https://forums.phpfreaks.com/topic/145815-solved-query-to-do-simple-update/ Share on other sites More sharing options...
Mchl Posted February 18, 2009 Share Posted February 18, 2009 Do $mysql = mysql_query(" UPDATE `Persons` SET `Name`='Dave', `Car`='Ford' `ID`='$NewID' WHERE `ID`='$OLDID' LIMIT 1 ") or die(mysql_error()); If it errors, it will show the message, that will hopefully tell us what's wrong. Link to comment https://forums.phpfreaks.com/topic/145815-solved-query-to-do-simple-update/#findComment-765594 Share on other sites More sharing options...
dizzy1 Posted February 18, 2009 Author Share Posted February 18, 2009 Do $mysql = mysql_query(" UPDATE `Persons` SET `Name`='Dave', `Car`='Ford' `ID`='$NewID' WHERE `ID`='$OLDID' LIMIT 1 ") or die(mysql_error()); If it errors, it will show the message, that will hopefully tell us what's wrong. CHEERS, I was missing a Commar . Link to comment https://forums.phpfreaks.com/topic/145815-solved-query-to-do-simple-update/#findComment-765645 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.