delete old shout's from database

Started by rickandmary, July 20, 2012, 01:53:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rickandmary

Delete's shouts after x period of time, set to your own preference.

//delete old shouts
   $shout_expire = time() - (3 * 86400);
   $res = mysql_query("DELETE FROM shoutbox WHERE timestamp < $shout_expire");