//expiration $datetoday = date(\"F j, Y, G:i\"); $expquery = mysql_query(\"SELECT a_expire FROM regform_admin WHERE status = \'Pending for payment\'\"); $row = mysq
Why don't you just check if the current hour is 23 ? Something like (I'm not sure about the PHP syntax of ternary operator though) :
$onehour = date("G) > 22 ? 0 : date("G) + 1;
Then you also want to change the current day, and check if you change year.