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.

95 Comments to "Event Calendar"

sithira March 26, 2015 at 7:57 pm | Reply


is the date shifting bug is fixed ? if so kindly post what you did .. i will really appreciate that =-)
Andrew Schoenike March 12, 2015 at 11:14 pm | Reply


When I open up the example page, it just gives me a bunch of code written and the change month buttons. I'm not sure what I need to change for it to work right other than the config.php info
ichanooo March 6, 2015 at 6:05 am | Reply


how to use event? i dont know how, guide me pls? thanks :)
adi trisna March 5, 2015 at 10:48 am | Reply


kuyaoming January 4, 2015 at 12:06 am | Reply


very good!
bon January 1, 2015 at 3:02 am | Reply


this calendar work 2015 cause when i save an event in in January 2 2015 then i next the month then return to January the event cant see
leonardo January 6, 2015 at 9:12 pm


the same problem with me! please help!
Albert February 22, 2015 at 10:05 pm


Greetings, this was my solution.



(intval($_REQUEST["month"])>0) ? $cMonth = intval($_REQUEST["month"]) : $cMonth = date("m");
(intval($_REQUEST["year"])>0) ? $cYear = intval($_REQUEST["year"]) : $cYear = date("Y");


$cMonth = "0".intval($_REQUEST["month"]);
if ($_REQUEST["month"]>9) {
$cMonth = intval($_REQUEST["month"]);
$cYear = intval($_REQUEST["year"]);
$cMonth = date("m");
$cYear = date("Y");

I hope I have helped
Freek Derks December 16, 2014 at 1:20 am | Reply


Great work this template. but how can I change the months language to for example dutch.

Thank for your support.
Lenny December 15, 2014 at 1:55 pm | Reply


I like it.
lhey December 11, 2014 at 12:08 am | Reply


cant view posted events in other year.. pls help thanks
lhey December 11, 2014 at 12:03 am | Reply


posted events in other month didnt display. pls. help

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 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 ~