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
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
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
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
4 matches
Mail list logo