php - How do I automatically Delete Rows from MySQL Database on specific date? -


i know there has way automatically delete row in mysql table on specified date. brain dead today : /

let's have cms input posts , want 1 of fields in table "delete_date" , if put date in field delete row on date specified. if not enter date not auto delete.

what best way using php/mysql. tips or examples help.

a basic query:

delete * cms_table delete_date='$the_date_to_delete'

( see: http://dev.mysql.com/doc/refman/5.0/en/delete.html )


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -