A simple and efficient web-based appointment scheduling system built with PHP and MySQL. This application allows businesses to manage appointments, track client schedules, and organize services effectively.
- Add new appointments with client details
- View all appointments in a clean, tabulated format
- Edit existing appointments
- Delete appointments
- Responsive and user-friendly interface
- PHP 7.0 or higher
- MySQL 5.6 or higher
- XAMPP/WAMP/LAMP server
- Web browser
- Clone or download this repository to your XAMPP's
htdocs
folder - Create a new MySQL database named
appointment_scheduler
- Import the database structure (Create the following table):
CREATE TABLE appointments (
id INT AUTO_INCREMENT PRIMARY KEY,
client_name VARCHAR(255) NOT NULL,
service VARCHAR(255) NOT NULL,
appointment_date DATE NOT NULL,
appointment_time TIME NOT NULL
);
- Configure the database connection:
- Open
db.php
- Update the following variables if needed:
$host = 'localhost'; $username = 'root'; $password = ''; $database = 'appointment_scheduler';
- Open
- Start your XAMPP server (Apache and MySQL)
- Open your web browser and navigate to
http://localhost/appointment scheduling system
- You can now:
- View all appointments on the main page
- Add new appointments using the "Add New Appointment" button
- Edit existing appointments by clicking the "Edit" button
- Delete appointments using the "Delete" button
index.php
- Main page displaying all appointmentsadd_appointment.php
- Form to add new appointmentsdb.php
- Database connection configurationstyle.css
- CSS styles for the application
- Client Name
- Service Type
- Appointment Date
- Appointment Time
- Sortable table view
- Clear display of all appointment details
- Easy access to edit and delete functions
The application features a clean, professional design with:
- Responsive layout
- User-friendly forms
- Clear navigation
- Consistent color scheme
- Modern button styling
- Easy-to-read tables
This is a basic implementation. For production use, please implement:
- Input validation
- SQL injection prevention
- User authentication
- CSRF protection
- Proper error handling
Feel free to fork this repository and submit pull requests for any improvements.
This project is open-source and available under the MIT License.