The Event Calendar script reads events from MySQL table. 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.


To download Event Calendar for FREE you need to login your account.

how to install

Follow these steps to run this free PHP Event Calendar script.

1) open database.sql and import all the MYSQL queries in your database. We've included few sample events there.

2) edit config.php file and set MySQL login details to connect to your database.

3) use your web browser to open the example-page.html which will show the calendar.
929376 Comments to "Event Calendar"
  • darren


    October 10, 2015 at 00:12 am

    Hi there, firstly great script! would it be possible to have all the "upcoming events" in a list on the events.php page, and if its not too much to ask for it to not show events which have expired, thanks


  • Aman Soni

    Aman Soni

    September 28, 2015 at 22:09 pm

    It's not working..please help..or explain me how to use it...

  • vaidyamanishjoshi


    September 21, 2015 at 21:15 pm

    My server is migrated from php 5.3 to php 5.4

    After that calendar.js code is shown on webpage instead of actual calendar...

    any suggestions please...

  • Tharavadee


    September 17, 2015 at 06:37 am

    If i want to search name in database to show in calendar. How can i do it ?

  • Jessa Abulencia

    Jessa Abulencia

    September 14, 2015 at 11:06 am

    I cant view the calendar. How can I make it work? Thank you for the help..

  • mahe


    September 11, 2015 at 11:50 am

    on mouse over event is not displayed.. can one show me a correct code !

  • mahe


    September 11, 2015 at 11:38 am

    how make a event display in calendar

  • Red X

    Red X

    August 19, 2015 at 16:12 pm

    Hi, I want to know how can I use the event properties..if someone can help me....thanks a lot!

    • Red X

      Red X

      August 19, 2015 at 16:43 pm

      And i want to know if I can to create a calendar event dynamic...for every user personal..a calendar private..not for all users..for example...John create his personal event...Marry create her personal event...and the list continue..

  • Paul raj

    Paul raj

    July 28, 2015 at 07:32 am

    Hi , friends good morning Am Paul raj please help me , urgent
    I want a calender source code in php. then i need to validate like the date is acailable is green colour if is not available shown red colour. anyone know my requirement please send me fast

    • vaidyamanishjoshi


      July 28, 2015 at 07:50 am

      open calendar.css file...
      and Edit following....

      around line number 45 -
      #Calendar .withevent { background-color:green;}

      around line number 53 -
      #Calendar .noevent { background-color:red;}

  • vaidyamanishjoshi


    July 22, 2015 at 10:03 am

    Can we disable all Dates prior to current date in this script?


Add your comment