https://github.com/erenelagz/hospital-appointment-system
Basic Hospital Appointment System Using PHP
https://github.com/erenelagz/hospital-appointment-system
hospital hospital-management-system oto php web-based-application
Last synced: 7 months ago
JSON representation
Basic Hospital Appointment System Using PHP
- Host: GitHub
- URL: https://github.com/erenelagz/hospital-appointment-system
- Owner: ErenElagz
- License: mit
- Created: 2023-06-30T15:30:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T19:41:23.000Z (9 months ago)
- Last Synced: 2025-03-29T12:51:22.206Z (7 months ago)
- Topics: hospital, hospital-management-system, oto, php, web-based-application
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Hospital Appointment System
## Features
- **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**
---
## Installation
### Step 1: Run the SQL Queries
Create the necessary database and tables by running the following commands:
```sql
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');
```
### Step 2: Manual Setup (Alternative)
1. **Create Database**: Name it `hospital`.
2. **Create `appointment` Table**:
- 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))
3. **Create `users` Table**:
- Columns:
- `id` (int, primary key, auto increment)
- `name` (varchar(255))
- `password` (varchar(255))
4. **Insert Default User**:
```sql
INSERT INTO users (id, name, password) VALUES
(1, 'Eren', '123');
```
### Step 3: Update Database Configuration
Make sure to check and update your PHPMyAdmin username and password in `src/php/dbcon.php`.
---
## Usage
1. Open `index.php` to access the login page.
2. Create a user in PHPMyAdmin if none exists.
3. Log in with your credentials.
4. After login, you will be redirected to `home.php` (Control Panel):
- Add appointments using the form.
- View appointments in the table.
- Click `UPDATE` in any row to edit an appointment, which redirects to `update.php`.
- Click `DELETE` to remove an appointment, which redirects to `delete.php`.
---
## Technologies Used
### Languages and Frameworks
1. **HTML**
2. **CSS**
- **Bootstrap 5** for responsive design
3. **JavaScript**
- Minimal code for interactivity
4. **LottieFiles**
- For animations
5. **PHP**
6. **SQL**
- Basic queries for database management
---
## Screenshots

*Login Page*

*Admin Panel*

*Appointment Management Table*

*Update Appointment*
---
## License
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! ❤️
---
## Contact
If you have any questions or feedback, feel free to reach out:
**Email**: [elagzeren@gmail.com](mailto:elagzeren@gmail.com)