FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » problem saving date fields
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: problem saving date fields [message #174098 is a reply to message #174096] Sat, 21 May 2011 14:09 Go to previous messageGo to previous message
Co is currently offline  Co
Messages: 75
Registered: May 2011
Karma:
Member
On 21 mei, 15:46, Luuk <L...@invalid.lan> wrote:
> On 21-05-2011 14:12, Co wrote:
>
>> <option value="01">1</option>
> ....
>> <option value="31">31</option>
>> Sorry for the length
>> Marco
>
> ;)
>
> replace it with:
> <?php
> for ($x=0; $x<=31; $x++) {
>         printf('<option value="%02d">>%02d</option>', $x, $x);
>
> } ?>
>
> --
> Luuk

Thanks Luuk

one small typo:
for ($x=0; $x<=31; $x++) {
printf('<option value="%02d">%02d</option>', $x, $x);

would it be possible to have the numbers 1 till 9 have without leading
0?

Marco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: is dis da place?
Next Topic: foreach in reverse
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:56:13 GMT 2024

Total time taken to generate the page: 0.04835 seconds