I have a PHP script that runs a SELECT query then immediately deletes the record. There are multiple machines that are pinging the same php file and fetching data from the s
well I would use table locks read more here
Locking is safe and applies to one client session. A table lock protects only against inappropriate reads or writes by other sessions.