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']."'"); 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 Link to comment https://forums.phpfreaks.com/topic/113744-delete-all/#findComment-584519 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.