Re: Deleting all rows in a database every 24 hours?
| From: | Paul Scott | Date: | Fri, 22 Feb 2008 06:35:14 +0000 |
| Subject: | Re: Deleting all rows in a database every 24 hours? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269841@lists.php.net to get a copy of this message | ||
On Fri, 2008-02-22 at 07:28 +0100, Zoran Bogdanov wrote:
> The title says it all, how do I perform an action every 24 hours?
>
$sql = "TRUNCATE TABLE 'sometable'";
$this->query($sql);
on a cron.daily
--Paul
--
------------------------------------------------------------.
| Chisimba PHP5 Framework - http://avoir.uwc.ac.za |
:------------------------------------------------------------: