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. Quote 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. Quote 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 . Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.