Resetting a MySQL Field value without user execution

后端 未结 4 756
庸人自扰
庸人自扰 2021-01-28 14:10

I need to reset a MySQL Field value automatically at midnight. It is a specific column in a specific row in a table. I know how to do this in PHP but I do not know how to execut

4条回答
  •  忘掉有多难
    2021-01-28 14:45

    There are web based cron services too. Basically you set up an account and then they visit an URL of your choosing at a regular interval. On your server you set up a page that does what you need to get done. Preferably give it a unlikely-to-find-name like myjob789273634ahhh8s2nhw8sghusgf874wfu.php. You get the idea. (Remember that PHP-scripts timeout after like 30secs.)

    Here's a google search: **oops I'm new so I can't post URL apparently. Just search for "web based cron".

    Good luck /0

提交回复
热议问题