SQL entries that expire after 24 hours

前端 未结 3 1494
不思量自难忘°
不思量自难忘° 2021-01-03 06:31

I want to make a table where the entries expire 24 hours after they have been inserted in PHP and MySQL.

Ideally I want to run a \"deleting process\" every time a us

3条回答
  •  一生所求
    2021-01-03 07:31

    You can look into using Cron Job, http://en.wikipedia.org/wiki/Cron Make it run once every 24 hours when it matches your requirement.

    This will help

    Delete MySQL row after time passes

提交回复
热议问题