[thelist] PHP mkdate() question
CDitty
mail at redhotsweeps.com
Mon Jul 16 18:13:41 CDT 2001
Son of a #@$$%@@. I have no idea where I got that code, but I would really
much rather use yours. :^)
Thanks ALOT for showing me the way. I can't believe I did not see that.
Chris
>Hmm.
>
>What you're doing with $days is really, really complex.
>
>You're getting the month from date("d") okay. Your mktime gets the value of
>the first day of NEXT month (the +1), then regresses a day to get the value
>of the last day of this month (the -1).
>
>Ouchawawa.
>
>For the number of days in the current month, try this:
>
>$days = date("t");
>
>from : http://www.php.net/manual/en/function.date.php
>
>Works like a charm every time.
>
>Seb
>http://www.sebpotter.org
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list