ballhogjoni Posted July 8, 2008 Share Posted July 8, 2008 How do I delete all records in my table where they meet a specific requirement. my code: mysql_query("DELETE FROM Shows_Categories WHERE shows_id='".$data['shows_id']."'"); Quote Link to comment https://forums.phpfreaks.com/topic/113744-delete-all/ Share on other sites More sharing options...
Andy-H Posted July 8, 2008 Share Posted July 8, 2008 That should work, if it isnt working add or die(mysql_error()); at the end and paste the error here. mysql_query("DELETE FROM Shows_Categories WHERE shows_id='".$data['shows_id']."'")or die(mysql_error()); Like that Quote Link to comment https://forums.phpfreaks.com/topic/113744-delete-all/#findComment-584519 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.