PHP Project Kalpesh
PHP Project Kalpesh
MICRO-PROJECT REPORT
Name of
Sr. Details of Responsible
Week Planned Planned
No. activity Team Members
Start Finish
date date
1 1 &2 Discussion & Finalization
of Topic
2 3 Preparation of the Abstract
3 4 Literature Review
4 5 Submission of Microproject
Proposal ( Annexure-I)
5 6 Collection of information
about Topic
6 7 Collection of
relevant content /
materials for the execution
of
Microproject.
7 8 Discussion and submission
of outline of the
Microproject.
8 9 Analysis / execution of
Collected data / information
and preparation of
Prototypes / drawings /
photos / charts / graphs /
tables / circuits / Models /
programs etc.
9 10 Completion of Contents of
5.0 Project Report
10 11 Completion of Weekly
progress Report
11 12 Completion of Project
Report ( Annexure-II)
12 13 Viva voce / Delivery of
Presentation
5
Resources Required (major resources such asraw material, some machining facility, software etc.)
6
INDEX
Sr.no Topic Page.no
1 Information 2
5 conclusion 13
7
Information
A Blood Donation Management System is a software application
designed to manage and streamline the processes related to blood
donation and its storage. The system keeps track of donors, blood
recipients, blood inventory, and donations. The main objective is to
efficiently manage and organize blood donations, ensuring that it is
available when needed.
8
Key Features of the Blood Donation Management
System
1. Donor Registration: The system allows individuals to register
as blood donors. It captures personal details like name, age,
blood type, contact information, etc.
2. Blood Donation Record: Keeps track of each blood donation
event, including date, donor details, blood type, and volume
donated.
3. Blood Stock Management: Manages the current inventory of
blood based on donations and issues to patients.
4. Blood Requests: Manages blood requests by hospitals, patients,
or clinics. Tracks which blood type is required and its urgency.
5. Alerts/Notifications: Sends alerts to remind donors about
upcoming donation eligibility, or notify blood banks when stock
is low.
6. Reports: Generates reports regarding donation statistics, donor
history, and inventory levels.
7. Admin Dashboard: For monitoring the overall operations,
updating blood stock, handling donor data, and managing blood
requests.
Tech Stack
Programming Language: Python (for backend logic)
Database: MySQL or SQLite (for storing data like donor
information, blood inventory)
User Interface: Tkinter (for GUI) or Django/Flask for web-
based applications
Version Control: Git (for code management)
High-Level Design
9
Database Tables:
o Donors (DonorID, Name, Age, BloodType, Contact)
o Donations (DonationID, DonorID, BloodType, Date,
Quantity)
o BloodStock (BloodType, Quantity)
o Requests (RequestID, BloodType, Quantity, Date,
Hospital)
Core Functions:
o register_donor(): Registers a new donor
o record_donation(): Records a new donation
o update_blood_stock(): Updates blood inventory after
donation
o generate_report(): Generates donation and stock reports
o process_blood_request(): Processes a blood request from
hospitals or patients
10
Blood donation management system program
SQL
CREATE DATABASE blood_donation_system;
USE blood_donation_system;
CREATE TABLE donors (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
age INT NOT NULL,
blood_type VARCHAR(5) NOT NULL,
contact VARCHAR(15) NOT NULL
);
// Create connection
$conn = new mysqli($servername, $username, $password,
$dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
12
Donor Registration (donor_register.php)
<?php
include 'db.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST['name'];
$age = $_POST['age'];
$blood_type = $_POST['blood_type'];
$contact = $_POST['contact'];
<h2>Donor Registration</h2>
<form method="POST" action="donor_register.php">
13
Name: <input type="text" name="name" required><br>
Age: <input type="number" name="age" required><br>
Blood Type: <input type="text" name="blood_type"
required><br>
Contact: <input type="text" name="contact"
required><br>
<input type="submit" value="Register">
</form>
14
Record Blood Donation (donation.php)
<?php
include 'db.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$donor_id = $_POST['donor_id'];
$blood_type = $_POST['blood_type'];
$quantity = $_POST['quantity'];
$donation_date = $_POST['donation_date'];
16
Quantity: <input type="number" name="quantity"
required><br>
Donation Date: <input type="date"
name="donation_date" required><br>
<input type="submit" value="Record Donation">
</form>
17
Admin Dashboard (admin_dashboard.php)
<?php
include 'db.php';
echo "<h2>Admin Dashboard</h2>";
echo "<h3>Blood Stock</h3>";
$sql = "SELECT * FROM blood_stock";
$result = $conn->query($sql);
while ($row = $result->fetch_assoc()) {
echo "Blood Type: " . $row['blood_type'] . " - Quantity: "
. $row['quantity'] . "<br>";
}
echo "<h3>Recent Donations</h3>";
$sql = "SELECT donations.donation_id, donors.name,
donations.blood_type, donations.quantity,
donations.donation_date
FROM donations
JOIN donors ON donations.donor_id = donors.id
ORDER BY donations.donation_date DESC LIMIT 5";
$result = $conn->query($sql);
while ($row = $result->fetch_assoc()) {
echo "Donation ID: " . $row['donation_id'] . " | Donor: " .
$row['name'] . " | Blood Type: " . $row['blood_type'] . " |
Quantity: " . $row['quantity'] . " | Date: " . $row['donation_date']
. "<br>";
}
?>
18
Conclusion
You now have a fully functional Blood Donation Management
System built with PHP and MySQL. This includes donor
registration, blood donation recording, blood request management,
and an admin dashboard to view the stock and recent requests.
To run this:
1. Set up a local server (e.g., XAMPP, WAMP) and place the files
in the root directory.
2. Ensure your MySQL database is configured properly, and the
database and tables are created.
3. Open index.php in a browser to begin interacting with the
system.
19
Name of Student:-Kalpesh ravsaheb kachole En. No._2210920112
Name of Program:-_COMPUTER ENGINEERING Semester:-_6TH
Course Name:- WBP Course Code:-_22619
Title of The Micro-Project:- Blood donation management system
Course Outcomes Achieved:-
Sub
Sr. Poor Average Good Excellent
Total
No. (Marks1-3) (Marks4-5) (Marks 6-8) (Marks9-10)
Characteristic to be assessed
(A) Process and Product Assessment (Convert Below total marks out of 6Marks )
2 Literature
Review/information
collection
3 Completion of the Target as
Per project proposal
4 Analysis of Data and
representation
5 Quality of Prototype/Model
6 Report Preparation
Presentation
7
8 Viva
(A) (B)
Process and Product Individual Presentation/ Viva (4 Total Marks
Assessment (6 marks) marks) 10
Dated Signature:-
20