kevincro Posted October 17, 2007 Share Posted October 17, 2007 I'm trying to delete a row from a database table. I've made a connection yet it's not working. Is there something wrong with the following code? mysql_query("DELETE * from `contactinfo` WHERE Submission_Number = 1 "); Quote Link to comment https://forums.phpfreaks.com/topic/73706-solved-is-there-something-wrong-with-this-code/ Share on other sites More sharing options...
MadTechie Posted October 17, 2007 Share Posted October 17, 2007 yep.. should be mysql_query("DELETE from `contactinfo` WHERE Submission_Number = 1 "); infact, this would be better (will tell you the error) mysql_query("DELETE from `contactinfo` WHERE Submission_Number = 1 ") or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/73706-solved-is-there-something-wrong-with-this-code/#findComment-371897 Share on other sites More sharing options...
kevincro Posted October 17, 2007 Author Share Posted October 17, 2007 That worked perfecly. Thank you so much for your help. Quote Link to comment https://forums.phpfreaks.com/topic/73706-solved-is-there-something-wrong-with-this-code/#findComment-371902 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.