Answer the question
In order to leave comments, you need to log in
How to delete a record from the database by timer?
Hello!
Let's assume there is an entry in the database and a column in which the date of deletion of this entry is marked.
How to implement it? If possible - in two versions, in yii2 and pure php, at least at the level of the action algorithm.
Thank you.
Answer the question
In order to leave comments, you need to log in
By Cron'u check the date of deletion - if the time has come, then delete. Cron script can be in yii or pure php.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question