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 "); 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()); 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. 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
Archived
This topic is now archived and is closed to further replies.