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