Answer the question
In order to leave comments, you need to log in
How to automatically delete a record from the database after 10 minutes?
Hello. Faced a problem. I am currently building a website for booking hotel rooms. In theory, the script should work like this:
Answer the question
In order to leave comments, you need to log in
Option 1 - set booking time, run cron once per minute, delete all unconfirmed bookings older than 10 minutes.
Option 2 - run the MySQL scheduler and, along with the booking, create an event to delete it if there is no confirmation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question