You want to spend some time and learn about transactions.
In reply to Re: run 2 query mysql by marto in thread run 2 query mysql by bigup401