At 25.04.2002 11:46, you wrote: >How can i display a dynamic page showing last month and next month and the >month before > >eg >this moth is <?php echo date("j-M-Y H:i"); ?> >how do i add 1 to the month or -1 to the month?
Several methods mktime() where you put last month(s) via (date("m") -1) getting the actual day of the month, calculating its seconds +1 substracting this from the actual time(). Vice versa for adding one month. but I think mktime makes it easier. Any other suggestions ? Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php