Chapter 12. Creating a Simple Calendar

This hour continues the date and time lesson from the previous hour, this time in the context of creating a small calendar.

In this hour, you will learn

  • How to build a simple calendar script

  • How to build a class library to generate date pull-downs in HTML forms

Building a Simple Display Calendar

Let’s bring together the date and time functions you learned in the previous hour, and use them to build a calendar that can display the dates for any month between 1980 and 2010. The user will be able to select both month and year with pull-down menus, and the dates for the selected month will be organized according to the days of the week. We will be working with two variables—one for month and one for year—which the ...

Get Sams Teach Yourself PHP, MySQL™ and Apache in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.