A professional, web-based management system designed to coordinate blood donations, manage inventory, and handle hospital requests efficiently. This system uses a real-time stock update mechanism to ensure life-saving blood units are tracked accurately.
- Role-Based Access: Specialized dashboards for Admin, Donor, and Hospital roles.
-
Live Inventory Tracking: Real-time monitoring of stock levels for all 8 blood groups (
$A\pm, B\pm, O\pm, AB\pm$ ) in milliliters (ml). -
Automated Stock Sync:
- Donations: Automatically increases inventory when a donor gives blood.
- Requests: Deducts from stock upon administrative approval.
- Request Management: Streamlined workflow to approve or reject blood requests from patients and hospitals.
- Donor History: Complete logs of every donor's medical info and donation frequency.
- Secure Authentication: Session-based login with password protection and role verification.
- Backend: PHP 8.x (Procedural & Logic-driven)
- Database: MySQL / MariaDB
- Frontend: HTML5, CSS3 (Custom Theme), FontAwesome 6.4.2
- Server: Optimized for Apache (XAMPP / WAMP / Linux)
The application is powered by a relational database named blood bank. Below are the primary tables:
| Table Name | Description |
|---|---|
users |
Stores login credentials and role assignments (Admin/Donor/Hospital). |
donors |
Contains detailed profiles including blood group and contact info. |
blood_stock |
The central ledger for current blood volume (ml) per group. |
blood_requests |
Tracks incoming requests, volume needed, and fulfillment status. |
donations |
Logs historical data of every successful donation event. |
-
Clone the Project:
git clone [([(https://github.com/Sakil-Dev/Blood-bank-web.git)][(https://github.com/Sakil-Dev/Blood-bank-web.git)}
-
Database Configuration:
- Open phpMyAdmin.
- Create a new database named
blood bank. - Import the
blood_bank(1).sqlfile found in the root directory.
-
Connection Setup:
- Open
db_connect.phpand verify your local server settings:
$conn = mysqli_connect("localhost", "root", "your_password", "blood bank");
- Open
-
Run the Application:
- Move the project folder to your server's root (e.g.,
htdocs). - Open your browser and go to
http://localhost/blood-bank-management/index.php.
- Move the project folder to your server's root (e.g.,
The system features a custom Cyan & Crimson color palette designed for high visibility and professional medical aesthetics. It includes:
- Interactive progress bars for blood stock.
- Status badges (Pending, Approved, Rejected) for easy tracking.
- Responsive sidebar navigation for seamless multitasking.
Distributed under the MIT License. See LICENSE for more information.
Developed with ❤️ to save lives. If you find this project useful, please consider giving it a ⭐!
Login Page
Registration Page
Dashboard Page
Donor
List of donations
Blood Request
Request History
Blood Stock