[thelist] Expiring records in MySQL

Jay Blanchard jay.blanchard at niicommunications.com
Fri May 10 10:24:01 CDT 2002


[snip]
Is it possible to make entries into a MySQL database (+ PHP) which expire
and
are therefore autoremoved when their allocated date arrives?
[/snip]

If you are on Apache set up a CRON job that calls a PHP script daily that
DELETES from the table all the stuff whose date is today mius the time
period you want.

HTH!

Jay

[rant]Is it possible to automatically remove posters from the thelist who
send stuff with high importance when their e-mail arrives? (It's Friday, and
I shouldn't be grumpy I know, but WTF? Over.)[/rant]





More information about the thelist mailing list