date() returns a unix timestamp, which is in seconds.  You are only adding one 
second.

Try using mktime, and increment hte month argument there.

Josh.

On March 20, 2003 09:00 am, shaun wrote:
> Hi,
>
> could someone tell me why this:
>
> <?php
>    $month = date(m);
>    echo "\$month: ".date(F,strtotime($month))."<br>";
>    $month = $month + 1;
>    echo "\$month: ".date(F,strtotime($month))."<br>";
> ?>
>
> outputs this:
>
> $month: March
> $month: March
>
> surely it should be:
>
> $month: March
> $month: April
>
> Thanks in advance for your help.


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

Reply via email to