Location: PHPKode > projects > Chirp: The Microblog > chirp.v.1.1/cron.php
<?php



	error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

	

	include("includes/config.inc.php");

	include("includes/db.inc.php");

	

	mysql_query('DELETE FROM chirpmsg WHERE ENTRYDATE < DATE_SUB(NOW(), INTERVAL '.$msg_num_days.' DAY)');

	if(mysql_errno()){

		echo mysql_errno() . ': ' . mysql_error() . "\n";

		die();		

	}

	

	mysql_query('DELETE FROM users_waiting WHERE SIGNDATE < DATE_SUB(NOW(), INTERVAL 30 DAY)');

	if(mysql_errno()){

		echo mysql_errno() . ': ' . mysql_error() . "\n";

		die();		

	}

	

?>
Return current item: Chirp: The Microblog