Help needed with calendar function please

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonboy
Forum Newbie
Posts: 1
Joined: Tue Sep 30, 2008 2:08 pm

Help needed with calendar function please

Post by jonboy »

Hi, Im hoping thi is an easy question but Im quite new to PHP. All the tutorials Ive found only show how to print the current month. Any way here's my prob:
I need to create a table that shows all twelve months starting from the current month (ie. Sep, Oct, Nov, Dec, Jan, etc...). Is there an easy way to do this in PHP?
Thanks
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Help needed with calendar function please

Post by andyhoneycutt »

You should probably start by taking a look at the date/time functions in php.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Help needed with calendar function please

Post by califdon »

There are lots and lots of script snippets, but it depends on what you want to do, just display the calendar, pick a date to be used for data input, or actually contain events. Use Google with keywords like php calendar scripts. You will find hundreds of entries like this one: http://www.easyphpcalendar.com/
Post Reply