There is such a task: the user selects the task and the time to complete it (every 5 minutes, every day, etc.). This is all I write in the database.
There is a cron.php file that runs every 5 minutes and checks if there are any active tasks in the database.
How to write in the database correctly, so that php would understand whether to complete the task or not. Suppose the user chose every 5 minutes - what to write in the database?
Tell me who worked with it. I will be grateful :-)