yeah i figured the first part, however the second part i cant figure out. this sql query doesnt deletes all the records from yesterday:
the db connection and everything is ok!
// define the day of yesterday
$yesterday = date('Y-m-d', mktime (0,0,0,date("m") ,date("d")-1,date("Y")));
mysql_query("DELETE * FROM ref_count WHERE date = '$yesterday'") or die(mysql_error());
please help me!