Add a 1-hour expiration to the current time/date
<pre><code>//expiration
    $datetoday = date("F j, Y, G:i"); 

    $expquery = mysql_query("SELECT a_expire FROM regform_admin WHERE status = 'Pending for payment'");
    $row = mysql_fetch_array($expquery); 
    $expirydate = $row['a_expire'];
    echo "$datetoday";
    echo "$expirydate";
    if ($datetoday == $expirydate) {
    $expirequery = mysql_query("UPDATE regform_admin SET status = 'Expired' WHERE status = 'Pending'");
    $expirequery2 = mysql_query("UPDATE regform SET status = 'Expired' WHERE status = 'Pending'");
    }
    //end expiration
</code></pre>

<p>Hi I have a expiration of reservation code here. My problem is that if a customer make a reservation of 23:30 and the reservation will expire at 00:30 (1 hour), I made this code:</p>

<pre><code>$currentdate = date("F j, Y, G:i");  
$onehour = date("G") + 1;
$expire = date("F j, Y, $onehour:i");
</code></pre>

<p>The $onehour must increment the problem is that the 23:30 reservation must expire at 24:30. But after incrementing the $onehour, the 23:30 results into 24:40. Which my program cannot read since military time of 12am is 00:00 and not 24:00. Can anyone have suggestions in my problem? Thanks. Sorry for the lazy english I was tired of thinking</p>
