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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/184374-deleting-products/#findComment-973323 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.