Forum Moderators: coopster
I am using select boxes for people to choose the time from.
These are coming out from a simple loop, starting at 0 and finishing at 24:
----------
$count=0;
while($count<24)
{
$text.='<option value="'.$count.'">'.$count.'</option>';
$count+=1;
}
-----------
what i would like to do is display $count as 00 instead of just 0 at 12am and 01 instead of 1 at 1am and so on.
I'm sure there is a quick fix, i've just never found it...
Cheers.
hughie