note 47033 added to ref.calendar

From: Date: Sun, 31 Oct 2004 18:13:26 +0000
Subject: note 47033 added to ref.calendar
Groups: php.notes 
Request: Send a blank email to php-notes+get-79408@lists.php.net to get a copy of this message
i modified one line on the last calendar script. $lastmonth = mktime (0, 0, 0, date("m")+$m, 1, date("Y")); because the original dosent work if you execute it the day 31 or other upper day, because some months have less days. Showing some months twice. But if you change it, every month has a day 1. So all months will show up nicely. ---- Manual Page -- http://www.php.net/manual/en/ref.calendar.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47033 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47033&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47033&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47033&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47033&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47033&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47033&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47033&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79408) next »