Jeff Oien wrote:
When I do this:
$lastmonth = mktime(0, 0, 0, date("m")-9, date("d"),  date("Y"));

this will not work most of the year, if current month is August or less, the month value will be negative.


Use strtotime('-9 months') instead.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to