Koncept <userunknown.invalid> writes:
>I have a variable $days which is a counter to track days since an event
>start. What I wish to do is increment this variable by on, once a day
>if it is after 12:00am and echo this number. Any suggestions?
>Thanks.
Try this: (assuming the event happened September 1st)

$start = mktime (0,0,0,9,1,2004);
$now = time();
$days = floor (($now - $start) / 86400);

That should produce $days as an integer that will increase by one at midnight.

--
Patrick "The Chief Instigator" Humphrey (patrickio.com) Houston, Texas
[url]www.chiefinstigator.us.tt/aeros.php[/url] (TCI's 2003-04 Houston Aeros)