0% found this document useful (0 votes)
21 views20 pages

PHP Project Kalpesh

The document is a micro-project report for a Blood Donation Management System developed by Kalpesh Ravsaheb Kachole at Shreeyash College of Engineering and Technology. It outlines the project's aims, methodology, key features, and technical specifications, including the use of PHP and MySQL for implementation. The report also includes acknowledgments, an action plan, and a conclusion on the system's functionality and operational setup.

Uploaded by

kalpeshk1407
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views20 pages

PHP Project Kalpesh

The document is a micro-project report for a Blood Donation Management System developed by Kalpesh Ravsaheb Kachole at Shreeyash College of Engineering and Technology. It outlines the project's aims, methodology, key features, and technical specifications, including the use of PHP and MySQL for implementation. The report also includes acknowledgments, an action plan, and a conclusion on the system's functionality and operational setup.

Uploaded by

kalpeshk1407
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

SHREEYASH PRATISHTHAN’S

SHREEYASH COLLEGE OF ENGINEERING AND TECHNOLOGY


(POLYTECHNIC), CHH. SAMBHAJINAGAR

MICRO-PROJECT REPORT

NAME OF DEPARTMENT:- COMPUTER ENGINEERING


ACADEMIC YEAR:- 2024-25
SEMESTER:- 6TH
COURSE NAME:- Webpage application development
COURSE CODE:-_22518
MICRO-PROJECT TITLE:-Blood donation management system
BY:-
1) KALPESH RAVSAHEB KACHOLE EN. NO. 2210920112

UNDER THE GUIDANCE OF:- P.D.Tangade


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI CERTIFICATE
This is to certify that Mr./ Ms. KALPESH RAVAASAHEB KACHOLE of 5TH Semester of
Diploma in COMPUTER ENGINEERING of Institute SHREEYASH COLLEGE OF
ENGINEERING AND TECHNOLOGY
has successfully completed Micro-Project Work in Course of WPD for the academic year
202425 as prescribed in the I-Scheme Curriculum.

Date:- Enrollment No:- 2210920112


Place:- Chh. Sambhajinagar Exam Seat No.:-

Signature Signature Signature


Guide HOD Principle
P.D.Tangade A,C,Naik S.S.Khandagale
ACKNOWLEDGEMENT
We wish to express our profound gratitude to our guide
Prof. P.D.Tangade who guided us endlessly in framing and completion of
Micro-Project. He / She guided us on all the main points in that Micro-Project.
We are indebted to his / her constant encouragement, cooperation and help. It was
his / her enthusiastic support that helped us in overcoming of various obstacles in
the Micro-Project.
We are also thankful to our Principal, HOD, Faculty Members
and classmates for extending their support and motivation in the completion of
this Micro-Project.

1) KALPESH RAVSAHEB KACHOLE EN. NO.2210920112


Annexure-1
MicroProject Proposal
(Format or Micro-Project Proposal about1-2pages)

Title of Micro-Project:-Blood Donation Management System

1.0 Aims/Benefits of the Micro-Project (minimum30-50words)


The aim of framework testing is to ensure that the framework performs its intended functions
effectively, reliably, and securely, while also providing the expected benefits in terms of
reusability, scalability, and integration capabilities. Testing a framework is critical because
frameworks serve as the foundation for building applications, and any issues in the framework
can propagate and impact the overall system.

2.0 Course Outcomes Addressed


a) Validated Functionality
b) Integrated Systems Validation
c) Performance Benchmarks
d) Security Assurance
e) Compatibility and Platform Support f)
3.0 Proposed Methodology (Procedure in brief that will be followed to do the micro- project) in about
100 to 200 words).
Framework Testing is a specialized area of software testing that focuses on validating the core
functionality and integration of software frameworks. Frameworks are reusable, foundational
software components or libraries that provide a structure to help developers build applications
more efficiently. Testing a framework ensures that it functions correctly, remains stable under
various conditions, and works well when used in larger applications.
Framework Testing is the process of verifying that a software framework—
whether it's for a web application, a test automation suite, or a development
environment—functions as expected. Frameworks are reusable, pre-built
structures or libraries that help developers build applications more efficiently by
providing a set of common services or tools. The testing of these frameworks
ensures they are robust, stable, and ready to be used in production environments.
4.0 Action Plan (Sequence and time required for major activity. The following is for Reference, The
Activities can be Added / reduced / Modified )

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.)

Sr. Name of Resources / Materials Specification Qty Remarks


No.

Names of Team Members with En. Nos.

1. KALPESH RAVSAHEB KACHOLE En.No :- 2210920112

6
INDEX
Sr.no Topic Page.no

1 Information 2

2 Benefits of the Blood Donation Management 2


System:

3 Key Features of the Blood Donation Management System 3

4 Blood Donation Management System program 4-12

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.

Benefits of the Blood Donation Management


System:
Improved Efficiency:
o Automates the blood donation and management
processes, reducing manual errors and saving time.
o Easy tracking of donation histories and blood stock
levels.
Better Coordination:
o Helps in coordinating with hospitals and donors to
ensure that blood is available when needed.
o Facilitates communication between donors, hospitals,
and blood banks.
Emergency Management:
o The system ensures that blood requests are processed
quickly in emergencies.
o Helps blood banks maintain sufficient blood supply for
urgent needs.

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 TABLE donations (


donation_id INT AUTO_INCREMENT PRIMARY KEY,
donor_id INT,
blood_type VARCHAR(5),
quantity INT,
donation_date DATE,
FOREIGN KEY (donor_id) REFERENCES donors(id)
);
CREATE TABLE blood_stock (
blood_type VARCHAR(5) PRIMARY KEY,
quantity INT
11
);
Database Connection (db.php)
<?php
$servername = "localhost";
$username = "root"; // MySQL default username
$password = ""; // MySQL default password (if using
XAMPP or WAMP)
$dbname = "blood_donation_system";

// 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'];

$sql = "INSERT INTO donors (name, age, blood_type,


contact)
VALUES ('$name', '$age', '$blood_type',
'$contact')";

if ($conn->query($sql) === TRUE) {


echo "New donor registered successfully!";
} else {
echo "Error: " . $conn->error;
}
}
?>

<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'];

// Insert donation record


$sql = "INSERT INTO donations (donor_id, blood_type,
quantity, donation_date)
VALUES ('$donor_id', '$blood_type', '$quantity',
'$donation_date')";

if ($conn->query($sql) === TRUE) {


echo "Donation recorded successfully!";
} else {
echo "Error: " . $conn->error;
}

// Update blood stock


$sql = "SELECT quantity FROM blood_stock WHERE
blood_type = '$blood_type'";
15
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$new_quantity = $row['quantity'] + $quantity;
$sql = "UPDATE blood_stock SET quantity =
'$new_quantity' WHERE blood_type = '$blood_type'";
if ($conn->query($sql) === TRUE) {
echo "Blood stock updated!";
}
} else {
$sql = "INSERT INTO blood_stock (blood_type,
quantity) VALUES ('$blood_type', '$quantity')";
if ($conn->query($sql) === TRUE) {
echo "Blood stock added!";
}
}
}
?>

<h2>Record Blood Donation</h2>


<form method="POST" action="donation.php">
Donor ID: <input type="number" name="donor_id"
required><br>
Blood Type: <input type="text" name="blood_type"
required><br>

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 )

Relevance to the course


1

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

(B) Individual Presentation/Viva(Convert Below total marks out of 4Mark )

Presentation
7

8 Viva

(A) (B)
Process and Product Individual Presentation/ Viva (4 Total Marks
Assessment (6 marks) marks) 10

Comments/Suggestions about team work/leadership/inter-personal communication (if any)

Name of Course Teacher:-P.D.Tangade

Dated Signature:-

20

You might also like