Page 1 of 1

Help needed with calendar function please

Posted: Tue Sep 30, 2008 2:16 pm
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

Re: Help needed with calendar function please

Posted: Tue Sep 30, 2008 2:57 pm
by andyhoneycutt
You should probably start by taking a look at the date/time functions in php.

Re: Help needed with calendar function please

Posted: Wed Oct 01, 2008 2:24 pm
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/