Greetings fellow PHP enthusiasts.
My question relates to the way PHP and MySQL may execute certain queries within PHP files given a large volume of users running PHP scripts simultaneously.
Ok, so what I want to know is if I have a PHP file with something like the following:
<?php
$Query = "Do some stuff to a database table";
execute query;
$Query = "select record from the table based on the stuff I just did";
execute query;
$Query = "Based on my previous SELECT, do some more stuff to another table";
execute query;
?>
Pretty technical stuff I know, but what I'm wondering is if I have a massive volume of users on my site accessing pages which select and alter data from tables, is it possible that one of those people may cause a query to be run in between the queries listed in my file?
Basically, I have something like the file I have posted above which I am not at liberty to disclose for confidentiality reasons. I need to be 100% positive that the 3 queries in this file (like the example above) will be run sequentially with absolutely no queries (even selects) performed on the database in between them.
Hope that makes sense!
Evernoob