This project shows how a calendar can be made with php and html. It also contains examples of many date functions (particularly formatting), classes and namespaces, and pagination with GET parameters (switching months).
- Clone or download the project to your htdocs directory
- Make sure Apache and MySQL servers are running
- Copy config.ini.example to config.ini
- Create a folder called
etc
somewhere on your file system - In config.ini, set
etc_directory
equal to the full path to the directory you created in step 4 - In
etc
, create a file calleddb-connect.php
with the following code:<?php $con = new mysqli('localhost', 'root', '');
- Run the appointmentdb.sql file in Workbench
- Go to the project index page in your browser