- Login & Logout System
- Login Page
- Admin Page with Database Table
- CRUD Operations (Create, Read, Update, Delete)
- Update & Delete Pages
- User-Friendly Interface
- Personal & Appointment Management Sections
Create the necessary database and tables by running the following commands:
CREATE DATABASE hospital;
CREATE TABLE appointment (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255),
surname VARCHAR(255),
id_number VARCHAR(255),
city VARCHAR(255),
department VARCHAR(255),
date VARCHAR(255)
);
CREATE TABLE users (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255),
password VARCHAR(255)
);
INSERT INTO users (id, name, password) VALUES
(1, 'Eren', '123');- Create Database: Name it
hospital. - Create
appointmentTable:- Columns:
id(int, primary key, auto increment)name(varchar(255))surname(varchar(255))id_number(varchar(255))city(varchar(255))department(varchar(255))date(varchar(255))
- Columns:
- Create
usersTable:- Columns:
id(int, primary key, auto increment)name(varchar(255))password(varchar(255))
- Columns:
- Insert Default User:
INSERT INTO users (id, name, password) VALUES (1, 'Eren', '123');
Make sure to check and update your PHPMyAdmin username and password in src/php/dbcon.php.
- Open
index.phpto access the login page. - Create a user in PHPMyAdmin if none exists.
- Log in with your credentials.
- After login, you will be redirected to
home.php(Control Panel):- Add appointments using the form.
- View appointments in the table.
- Click
UPDATEin any row to edit an appointment, which redirects toupdate.php. - Click
DELETEto remove an appointment, which redirects todelete.php.
- HTML
- CSS
- Bootstrap 5 for responsive design
- JavaScript
- Minimal code for interactivity
- LottieFiles
- For animations
- PHP
- SQL
- Basic queries for database management
This project was my end-of-term project and does not include a formal license. Feel free to use and modify it as needed. Good luck! ❤️
If you have any questions or feedback, feel free to reach out:
Email: elagzeren@gmail.com



