Re: [PHP] Printing date out of array

2008-08-31 Thread Jochem Maas
Michael S. Dunsavage schreef: This is my date array: $months = array (1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); you want, if you ask me, to get you head round the following functions. http://php.net/set_loca

Re: [PHP] Printing date out of array

2008-08-31 Thread Ólafur Waage
I would suggest the time() value to be saved in your database. Since the date() function can use that as the second parameter and you can use any format date() allows. Or make your own. Ólafur Waage [EMAIL PROTECTED] 2008/8/31 Michael S. Dunsavage <[EMAIL PROTECTED]>: > This is my date array: > >

[PHP] Printing date out of array

2008-08-31 Thread Michael S. Dunsavage
This is my date array: $months = array (1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); This is my date select in the form: echo ''; for ($day = 1; $day <= 31; $day++) { echo "$day\n"; } echo ''; echo '';