[PHP] Time increment From: Alan Todd (Alan.Todd <email protected>)
Date: 11/01/00

Fir some reason i am at a loss..
i am trying to show a table (tv guide) with time from date(g) - 2 hours
later incremented by 30 mintes ( 10:00 10:30 11:00 11:30)
i can do it by hour

function tillMidnight(&$d)
        {
print date('g') . ':00';
print '<br>';

$hour_now = date('g')+1 > 12 ? (date('g')+1)-12 : date('g')+1;

while($hour_now <= 12)
{

?>
<td>
    <?=$hour_now?> <br>
        </td>
        <?

    $hour_now++;

}
}

Any tips here would be a great help

Alan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>