Re: [PHP] date list

2001-05-02 Thread James Holloway
Jon, Try this ... I know the code could be trimmed down, but I wrote it this way for ease of reading. "; echo "$month/$day/$year"; echo "\n"; $startperiod = $startperiod + 86400; } ?> Basically just uses mktime() and getdate() The 86400 is the number of seconds in the day, and the opti

Re: [PHP] date list

2001-05-01 Thread Chris Fry
uot; <[EMAIL PROTECTED]> > Cc: "PHP List" <[EMAIL PROTECTED]> > Sent: Wednesday, May 02, 2001 3:06 AM > Subject: Re: [PHP] date list > > > Jon, > > > > Just had to do almost exactly this - here's one solution. The tricky bit > was > > g

Re: [PHP] date list

2001-05-01 Thread Tomasz Abramowicz
ahem $daysinmonth = date('t'); - Original Message - From: "Chris Fry" <[EMAIL PROTECTED]> To: "Jon Rosenberg" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 3:06 AM Subject: Re: [PHP] date lis

Re: [PHP] date list

2001-05-01 Thread Chris Fry
Jon, Just had to do almost exactly this - here's one solution. The tricky bit was getting the number of days in the month - you have to look at next month! This generates a list for 12 months starting with the current month and outputs display stuff as well. In our scenario this is passed to a s

[PHP] date list

2001-05-01 Thread Jon Rosenberg
I need to make a select list for a web page in the following format: 01/01/01-01/07/01 01/08/01-01/14/01 01/15/01-01/21/01 etc etc till the end of 2002 and further in the future eventually I'd like to make PHP generate this for me so I don't have to handcode it for each year in the future. I've