Learn how to build a calendar using PHP. This tutorial is meant for slightly advanced developers, however you can still learn a lot from it. Learn date and time functions, advanced array usage and the PHP calendar functions.
This code is for when you have a list of events you would like to put on a Web page but don't want to have to keep track of which events have expired and manually delete them.
This tutorial offers you some insight into building a simple, extensible and modular PHP-based calendar by combining PHP's date and time functions with a mySQL database.