@mysql_select_db($database) or die( "Unable to select database");
$2days = TIMESTAMP(NOW()) - 172800;
$query="DELETE FROM Messages WHERE DateSent<'$2days'";
echo "Messages Updated";
I want it to delete all files older than 2 days from the database when the script activates, but it doesnt work full stop (Blank screen comes up).
Help much appreciated