[PHP] Add a leading zero

2003-09-24 Thread Shaun
Hi, How can i add a leading zero to the first result of this loop so that i get 00, 15, 30, 45? select name=start_date_minute ?php $i = 0; while ($i = 45){ echo 'option value='.$i.''.$i.'/option'; $i+=15; } ? Thanks for your help -- PHP General

Re: [PHP] Add a leading zero

2003-09-24 Thread Marek Kilimajer
www.php.net/str_pad Shaun wrote: Hi, How can i add a leading zero to the first result of this loop so that i get 00, 15, 30, 45? select name=start_date_minute ?php $i = 0; while ($i = 45){ echo 'option value='.$i.''.$i.'/option'; $i+=15; } ? Thanks

RE: [PHP] Add a leading zero

2003-09-24 Thread chris . neale
: Re: [PHP] Add a leading zero www.php.net/str_pad Shaun wrote: Hi, How can i add a leading zero to the first result of this loop so that i get 00, 15, 30, 45? select name=start_date_minute ?php $i = 0; while ($i = 45){ echo 'option value='.$i.''.$i

RE: [PHP] Add a leading zero

2003-09-24 Thread chris . neale
PROTECTED] Subject: Re: [PHP] Add a leading zero www.php.net/str_pad Shaun wrote: Hi, How can i add a leading zero to the first result of this loop so that i get 00, 15, 30, 45? select name=start_date_minute ?php $i = 0; while ($i = 45){ echo 'option value='.$i