note 70885 deleted from function.strtotime by derick
| From: | derick@php.net | Date: | Sun, 08 Apr 2007 12:58:59 +0000 |
| Subject: | note 70885 deleted from function.strtotime by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125206@lists.php.net to get a copy of this message | ||
Note Submitter: bad at php dot com
----
pzi42 - your solution won't work in months like january when it has to go back to the 28th of
febuary. the simplest solution I can think of to fix the problem of day 31 is to avoid using PHP
all together and use a SQL query like this:
SELECT DATE_ADD(
date , INTERVAL 1 MONTH );