MySQL Table Search »

Event Calendar

Price: FREE Version: 1.0
The Event Calendar script is a free piece of PHP code to create an event calendar for you. Below is a description of the files used and what each one of them does.

calendar.css - external CSS file which lets you easily change the appearance. If you do not know how to locate the styles used for each calendar element please refer to "Inspect CSS styles using Chrome" video found here

calendar.js - all the JS functions used to scroll the calendar and the ajax calls made to load both the calendar and the events

calendar.php - this is the PHP script used to build and print the calendar widget

config.php - the file where mysql database login is defined

database.sql - mysql table structure

events.php - this is the PHP file which loads the events once you click on a date

example-page.html - a sample web page with embed calendar widget.

45 Comments to "Event Calendar"

adam April 12, 2014 at 10:36 am | Reply


Having same problem, first day of some months not showing if its a Sunday, month starts at 02. How can we fix this?
DJ April 7, 2014 at 8:40 pm | Reply


First day in June 2014 is not showing, because this day is in Sunday. How to fix that?
pankaj April 3, 2014 at 11:40 am | Reply


sry the exact link is
pankaj April 3, 2014 at 11:38 am | Reply


Please see when you click on next month or previous month the event date of the current month disabled..
pankaj April 3, 2014 at 10:47 am | Reply


there is a bug, if we add or insert a date from 1-9 in a day , it is not highlighted.. help pls!!
gean March 17, 2014 at 12:38 pm | Reply


there is a bug, if we add or insert a date from 1-9 in a day , it is not highlighted.. help pls!!
Jonas S'jegers March 12, 2014 at 11:56 pm | Reply



how do i open this in another page?, in another root folder,
cause i want to show it on 2 pages, but the same calendar.
mathi March 4, 2014 at 8:59 am | Reply


Hi, jamarchi u said
".... you added some events for the next month and in the calendar you canĀ“t see it? but you can see the events in prev month ?"
yes i have highlight to display current date in this calendar... ?
saeed March 3, 2014 at 3:18 pm | Reply


when i add this line if ($cMonth<10) $cMonth = '0'.$cMonth; it is work but go back into 1970 how can i store the date today and i want it in alert
jamarchi March 3, 2014 at 5:39 pm


Hi, I resolved that problem with this solution.

Search this line
<td colspan="5" class="cMonth"> --> <?php echo date("F, Y",strtotime($cYear."-".$cMonth."-01")); ?></td>

and change it for this one
<td colspan="5" class="cMonth"><?php echo date("F, Y",strtotime(intval($cYear)."-".intval($cMonth)."-01")); ?></td>

I change that line and worked fine for me, test it and let us known

saeed March 5, 2014 at 12:12 pm


Yes it worked and gave me the time being, but in order to show that the event should go back to step behind or a step forward in order to watch the event as well as I want to show in the form of another window on the same page
saeed March 5, 2014 at 12:13 pm


and i want it in pop up window
saeed March 8, 2014 at 4:01 pm


Hi I want Help HERE i have Some Question and i don't have any replay
jamarchi March 9, 2014 at 12:25 am


Hi Saeed

Well you said that you want the calendar in a pop up !!

I think you have to add this line <div id="Calendar"> </div> into a script that call a pop up

I think this is what are you looking for

Try it and let us know

saeed March 9, 2014 at 11:04 am


Hi Thank u for respond But where should i add it and Plz Give me it via example it is not work
mathi February 27, 2014 at 4:04 pm | Reply



if any one know about how to fix the date. if i add events for feb (i.e current month) its showing well. then i add events for next month(March). if click to go march not showing the events at the same time i return back to feb month the old events are not showing.

Any one help me...

Please be polite and helpful and do not spam or offend others. We promise you will be treated the same way.

Log in your free account or if you still haven't joined our Webmaster Community Reward Program, you can create your free account now.

Posting tip:
if you use code in your comments please put it in these tags [php], [sql], [css], [js]
PHP code example: [php] echo date("Y-m-d"); [/php]

Thank you,
~ PHPJabbers team ~