RE: [PHP] Date Listing

2003-12-10 Thread Jay Fitzgerald
?php for($i = 0; $i = 31; $i++) { $theday = strtotime(+$i day); echo 'option value=',date('Y-m-d',$theday),'',date('l, F j',$theday),'/option'; } ? Where $i = 31 is the number of days you want looped HTH Jay -Original Message- From: Pablo Zorzoli [mailto:[EMAIL

RE: [PHP] Date Listing

2003-12-10 Thread Jay Blanchard
[snip] Let's see if you can help me with this odd function i want to do. Imagine i have to dates,for example: $date1=2002-10-01 $date2= 2003-12-10 I want a function to list all the dates that are between these two. 2002-10-01 2002-10-02 2002-10-03 . . 2003-12-09 2003-12-10 Has