We have an auto plate reader that records car plates in a firm. My colleague asked me if we could immediately get the plate number of the car. The software uses MySQL, and I only have access to the database. Unable to reach / change PHP codes.
My suggestion is to periodically check the request. For example, within 10 seconds. But in this way you can skip cars coming in 5 seconds. Then a decreasing interval increases the number of requests / responses, which means additional load for the server. I do not want the script to run always. It should only run the newly added db line. He shows the plate and the exits.
How can I get the last recorded row from db right after insertion? I mean, after insertion, my PHP script should run. But I do not know.
I want MySQL to be able to run my PHP script after a new entry.
source
share