i know everything is right above this point but why if i echo $empty_check it gives a value of zero when there where post made in the last hour...
am i doing this wrong or is there a syntax error...
$get = date("YmdHis");
$get_this = 10000;
$now = $get - $get_this;
//check to see if there are any fields that where made in the last hour
$sql_empty_check = mysql_query("SELECT * FROM database WHERE posttime >= $now");
$empty_check = mysql_num_rows($sql_empty_check);
//if they where created then carry out rest of functions
if(($empty_check > 0)){