deansaddigh Posted December 8, 2009 Share Posted December 8, 2009 I am just curious, how can i delete products from a db, BUT im running like 3 different sql queries to delete the products from its various tables and linker tables. How can i make sure that they only get executed if they all dont fail? Is there away to only run the sql query if they dont fail? Link to comment https://forums.phpfreaks.com/topic/184374-deleting-products/ Share on other sites More sharing options...
trq Posted December 8, 2009 Share Posted December 8, 2009 You can (using simple php logic) check to make sure a previous query hasn't failed before proceeding with another OR take a look at mysql's transaction & atomic operations. Link to comment https://forums.phpfreaks.com/topic/184374-deleting-products/#findComment-973323 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.