Solved

print next month

Posted on 2011-02-18
2
870 Views
Last Modified: 2012-08-14
How can I print "next month" as the full name format. i.e. March
0
Comment
Question by:petewinter
2 Comments
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 500 total points
ID: 34924878
You probably want a mix of strtotime and date like so

$nextMonth = date("F", strtotime("NOW +1 MONTH") )

See

http://www.php.net/strtotime
http://www.php.net/date

0
 

Author Closing Comment

by:petewinter
ID: 34924897
Many thanks
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hosting images 4 27
How to stop user from going back to a previous page in PHP 3 30
Blocking submission of a web-based form 6 20
php extract($_REQUEST) 5 46
This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question