100% found this document useful (1 vote)
178 views

Summer Internship Project On: "Basics of PHP"

This document describes a summer internship project on the basics of PHP submitted by Harshit Adhikari in partial fulfillment of the requirements for a BCA degree. The project involved developing an online blood bank information system using PHP technologies. Harshit declares that the work is his own and acknowledges the guidance provided by his faculty guides Dr. Shalini Bhaskar Bajaj and Dr. Aman Jatain. The project aims to create an information system about blood donors and organizations to allow people to register as donors or request blood online and for administrators to manage the database.
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
100% found this document useful (1 vote)
178 views

Summer Internship Project On: "Basics of PHP"

This document describes a summer internship project on the basics of PHP submitted by Harshit Adhikari in partial fulfillment of the requirements for a BCA degree. The project involved developing an online blood bank information system using PHP technologies. Harshit declares that the work is his own and acknowledges the guidance provided by his faculty guides Dr. Shalini Bhaskar Bajaj and Dr. Aman Jatain. The project aims to create an information system about blood donors and organizations to allow people to register as donors or request blood online and for administrators to manage the database.
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/ 45

Summer internship project on

“BASICS OF PHP”
Submitted in partial fulfilment of the requirements

for the award of the degree of

BCA

Submitted by:
HARSHIT ADHIKARI
Enroll No. A50504819011

Under the guidance of

Dr. Shalini Dr. Aman Jatain


Bhaskar Bajaj
Professor and Head Assistant Professor
ASET (CSE), AUH

Amity Institute of Information Technology

Amity University Haryana

07 September 2021
I
AMITY INSTITUTE OF INFORMATION TECHNOLOGY
HARYANA

DECLARATION

I, HARSHIT ADHIKARI, student of BCA-III SEMESTER, hereby declare that the


project entitled “ BASICS OF PHP” which is submitted by me to the Department of
Computer Science, AIIT, AUH, in partial fulfilment of the requirementsfor the award
of the degree of Bachler of Computer Applications (BCA), has not been previously
formed the basis for the award of any degree, diploma or other similar title or
recognition.

Date: 07-09-21 HARSHIT

ADHIKARI

II
AMITY INSTITUTE OF INFORMATION TECHNOLOGY
HARYANA

ACKNOWLEDGEMENT

It is my proud privilege to release the feelings of my gratitude to several persons who


helped me directly or indirectly to conduct this summer Project work my faculty guide
Dr. Shalini Bhaskar Bajaj and Co-guide Dr. Aman Jatain for their sincere guidance
and inspiration in completing this project.

I am extremely thankful to our course coordinator Dr. Meenu Vijarania for his
valuable time, guidance and encouragement, otherwise it would have been difficult to
keep the constant high spirit of work.

I also thank all my Friends who have more or less contributed to the preparation of this
Project report. I will be Always indebted to them.

The study has Indeed helped me to explore more knowledgeable avenues related to my
topic and I am sure It will help me in my future.

HARSHIT ADHIKARI

III
AMITY INSTITUTE OF INFORMATION TECHNOLOGY
HARYANA

CERTIFICATE

This is to certify that Harshit Adhikari (Enrollment No: A50504819011) student of


BCA (V Semester), Department of Information Technology, AIIT, Amity University
Haryana, has done her internship project entitled ‘‘BASICS OF PHP”. Under the
guidance and supervision of Dr. Shalini Bhaskar Bajaj and Dr. Aman Jatain mam
during ‘May-July 2021’. The work was satisfactory. he has shown competition
dedication and devotion to the given project

Dr. Shalini Bhaskar Bajaj Dr. Aman Jatain


(Professor) (Assistant Professor)

IV
ABSTRACT

This project is aimed to developing an online Blood Bank Information. The entire
project has been developed keeping in view of the distributed client server computing
technology, in mind. The Blood Donation Agent is to create an Information about the
donor and organization that are related to donating the blood. Through this application
any person who is interested in donating the blood can register himself in the same way
if any organization wants to register itself with this site that can also register. "ore over if
any general consumer wants to make request blood online, he can also take the help of
this site. Admin is the main authority who can do addition, deletion, and modification if
required. The project has been planned to be having the view of distributed architecture,
with centralized storage of the database. The application for the storage of the data has
been planned. MySQL ser interface and all the user interfaces have been designed using
the PHP technologies. The database connectivity is planned using the ' Connection
methodology. The standards of security and data protective mechanism have been given
a big choice for proper usage. The application takes care of different modules and their
associated reports, which are produced as per the applicable strategies and standards that
are put forwarded by the administrative staff.

V
LIST OF FIGURES

Figure Title Page No.


No.

Fig 1.1 About the project 3

Fig 1.2 Codecademy logo 4

Fig 2.2 Web Designing 8

Fig 2.3 Website Architecture 9

Fig 3.2 HTML 11

Fig 3.3 CSS 12

Fig 3.3 Java script 13

Fig 4.1 Homepage 16

Fig 4.2 How front-end back end works 17

Fig 5.1 Hospital login preview 18

Fig 5.2 Adding blood sample 19

VI
CONTENTS
CONTENTS PAGE
NO.

DECLARATION II

ACKNOWLEDGEMENT II1

CERTIFICATE IV

ABSTRACT V-VI
LIST OF FIGURES VII

TOPICS PAGE NO.

CHAPTER 1: INTRODUCTION 1-5

1.1 About the p r o j e c t 1-2


1.2 Objective 3
1.3 Description of the organization 3-4
1.4 Certificate 5

CHAPTER 2: BACKGROUND STUDY 6-9

2.1 Hospital development 7

2.2 Problem statement 7

2.3 Assumptions and hypothesis 8-9

CHAPTER 3: DESGIN OF PROJECT 10-15

3.1 Development environment 10


3.2 Technologies used 11-15

VII
CHAPTER 4: IMPLEMENTATION AND RESULTS 16-30
4.1 Getting started 17-18
4.2 Linking and designing more pages 19

4.3 How to import and open database 25-27

4.4 Connecting and defining elements 28

4.5 Checking database 29-30

CHAPTER 5: SNAPSHOT OF THE PROJECT 31-34


5.1 Hospital login preview 31
5.2 Request for blood sample 32
5.3 Adding blood group information 33

5.4 Update any information 34

CHAPTER 6: CONCLUSION AND FUTURE SCOPE 35-37


6.1 Conclusion 35

6.2 Scope for Future Work 36

REFERENCES 37

VIII
CHAPTER – 1

INTRODUCTION

1.1 About the project

Applying optimization methods to healthcare management and logistics is a devel- oping


research area with numerous studies. Specifically, facility location, staff rostering, patient
allocation, and medical supply transportation are the main themes analyzed. Optimization
approaches have been developed for several healthcare related problems, ranging from the
resource management in hospitals to the delivery of care services in a territory. However,
optimization approaches can also improve other services in the health system that have
been only marginally addressed, yet. One of them is the Blood Donation (BD) system,
aiming at providing an adequate supply of blood to Transfusion Centres (TCs) and
hospitals. Blood is necessary for several treatments and surgeries, and still a limited
resource. The need for blood is about ten million units per year in the USA, 2.1 in Italy and
2 in Turkey; moreover, people still die in some countries because of inadequate supply of
blood products (World Health Organization 2014). Hence, BD plays a fundamental role in
healthcare systems, aiming at guaranteeing an adequate blood availability to meet the
demand and save lives. In Western countries, blood collected from donors, i.e., unpaid
individuals who give blood voluntarily.

Blood is classified into groups (A and subgroups, B, 0 or AB) and based on the Rhesus
factor (Rh+ or Rh-), and each donor should be correctly matched with the patient who
receives his/her blood. Moreover, as it may transmit diseases, blood must be screened
before utilization. Generally, there are two types of donation: whole-blood donation, in
which the whole blood is directly collected in a plastic bag, and apheresis, i.e., the

1
donation of specific components in which a mechanical gathering unit decays the required
blood parts.

Blood requires particular precautions for collection and storage, and its shelf life from
donation to utilization is limited, thus requiring a continuous feeding of the (Greening et al.
2010). Hence, a successful BD supply chain should meet the daily demand of blood and
follow its temporal pattern. According to Sundaram and Santhanam (2011), BD supply
chain and the related management problems can be classified based on the main phases of
a blood bag life: donor registration, blood collection, blood screening/evaluation, inventory
storage and delivery. A slightly different classification is proposed in Pierskalla (2004),
according to which the management of BD supply chain concerns both strategic decisions
(e.g., location of blood centers) and tactical operational decisions (e.g., production of
multiple products, control of inventory levels, blood allocation to hospitals, and delivery to
multiple sites). In our review, we refer to the first classification scheme. Many papers
address the management of the BD supply chain (see Belin and Force (2012) for a recent
survey); however, there are still some open issues. The aim of this paper is reviewing the
literature related to the BD system management and classifying the existing research based
on the process phase, in order to highlight unexplored issues and to point out alternative
perspectives and possible future research opportunities. In section “Phases of Blood
Donation System” we give details about the BD system and survey the existing literature
(review updated at December 2014); then in section “Discussion and Open Issues” we
discuss the open issues and propose future research directions.

2
1.2 Objective

The main aim of developing this system is to provide blood to the people who are in need of
blood. The number of persons who are in need of blood are increasing in large number day
by day. Using this system user can search blood group available in the city and he can also
get contact number of the donor who has the same blood group he needs.
In order to help people who are in need of blood, this Online Blood Bank management system
can be used effectively for getting the details of available blood groups and user can also get
contact number of the blood donors having the same blood group and within the same city.

So, if the blood group is not available in the blood bank user can request the donor to donate
the blood to him and save someone life. Using this bank management system people can
register himself or herself who want to donate blood. To register in the system, they have to
enter their contact information like address mobile number etc.

3
1.1 Description of the organization

Fig 1.1 About the project [1]

4
Fig 1.2 Codecademy logo [1]

Codecademy is an American online interactive platform that offers free coding classes in 12
different programming languages including Python (pandas-Python library, Beautiful Soup-
Python Library), Java, Go, JavaScript (jQuery, AngularJS, React.js), Ruby (Ruby on Rails-
Ruby framework), SQL, C++, C#, Swift, and Sass, as well as markup languages HTML and
CSS. The site also offers a paid "Pro" option that gives users access to personalized learning
plans, quizzes, and realistic projects.
Codecademy was founded in August 2011 by Zach Sims and Ryan Bubinski. Sims dropped
out of Columbia University to focus on launching a venture, and Bubinski graduated from
Columbia in 2011.The company, headquartered in New York City, raised $2.5 million in
Series A funding in October 2011 and $10 million in Series B funding in June 2012. The
latest round of funding was led by Index Ventures. Crunchbase reports an additional Series
C round of funding for an undisclosed amount, by Bloomberg Beta in June 2013.
On July 22, 2014, the site appeared with a new redesigned dashboard.
In August 2015, Codecademy partnered with the White House, willing to host in-person
meet-ups for 600 students from disadvantaged women and minority groups over a twelve-
month period.
By August 2017, Codecademy's CEO Zach Sims officially announced the launch of the new
paid "Pro" product. A "Pro Intensive" paid offering was also launched in August 2017 but as
of 2020 this product appears to no longer be offered.

5
1.2 CERTIFICATE

6
CHAPTER-2

BACKGROUND STUDY

2.1 Blood Bank Development

For hospitals, a blood bank known as blood collection center, also is an area in which
collected blood bags are stored and preserved for future use in blood transfusion services.
Blood transfusion is a medical operation where a patient requires blood or blood products
as a life saving measure. In a report by Ministry of Health (MoH) in its website, it
mentioned that the total amount of blood donated annually in Muscat is
approximately 25,084 units. MoH further reported that its Department of
Blood Services is functioning at full capacity to meet the demands in the Sultanate.
Most blood banks are still running manual system in its processes. As such, there is a lack
of efficiency because it is still paper-based in collecting information about donors,
inventories of blood bags, and blood transfusion services.

The lack of proper documentation may endanger patients’ health due to the possibility of
having contaminate blood bags. Contamination happened when there is an incomplete
donors’ medical history record and the blood bags’ shelf life is not monitored properly.
Hence, a web-based blood bank management system might be needed to address these
issues and problems encountered to ensure blood transfusion safe

7
2.1 PROBLEM STATEMENT

Despite advances in technology, today's blood bank systems are running in manual system.
As such, there is a prevalent problem in the availability of needed blood types. For
instance, when a person needs a certain type of blood and this type is not available in the
hospital, family members send messages through social media to those who can donate to
them and this process takes longer than the life of the patient to the most dangerous. In
addition, it seems that there is lack of proper documentation about blood donors and its
medical history. This may lead to blood bag contamination and may affect the blood
transfusion safety.
Generally, this study aims to determine how the use of online bank management system
enhance blood transfusion safety. Subsequently, this study seeks to answer the following
specific problems:
1) What are the expected system users?
2) What is the system architecture to use?
3) What is the level of risk in blood transfusion in Oman?
4) To what extend the online bank management information system can enhance
blood transfusion safety?
5) Is there a significant difference in the level of risk in blood transfusion between manual
blood and online blood bank system?

8
2.2 ASSUMPTIONS AND HYPOTHESIS

The researchers assume the following assumptions:

1. Internet connectivity is needed for the online blood management system.


Internet speed may affect the perception of the systems users with regards to the
system effectiveness and efficiency.

2. Blood transfusion should be performed by medical or professional doctors only.


The over-all safety depends on the success of the medical operation.
The researchers identify the following hypotheses:

1. There is a significant difference in the level of blood transfusion safety


between manual- based and online blood bank systems.
2. There is an increased level of blood transfusion safety in using online
blood bank management systems while there is an increased risk when using manual-
based one.

9
CHAPTER -3

DESIGN OF PROJECT

Now that we’re aware of web development, web designing and architecture of the
website which had been the background pillars or concept used in the development
of this project. Therefore, now we’ll discuss about the operation environment and
the various Web development technologies used in this project.

3.1 DEVELOPMENT ENVIRONMENT

1. Hardware Configuration

• Processor: Intel Core i5

• RAM: 8GB

2. Software Configuration

• Operating System: Windows 10

• Development Environment: HTML, CSS, JavaScript, PHP, MySQL

• Text editors used: Visual studio

• Tool used : Xampp

10
3.2 TECHNOLOGIES USED
The Front is an abstraction, simplifying the underlying component by providing a
user-friendly interface. There are several tools or technologies available that can be
used to develop the front- end of a website.

• HYPERTEXT MARKUP LANGUAGE (HTML)

HTML (Hypertext markup language) is the most basic building block of the web. It
describes and defines the content of a webpage. “Hypertext” refers to links that
connect webpages to one another, either within a single website or between websites.
Links are a fundamental aspect of the web. By uploading content to the internet and
linking it to pages created by other people, one becomes an active participant in the
World Wide Web (WWW). HTML uses “markup” to annotate text, images and other
content for display in a web browser.

Fig3.2 HTML [3]

11
• CASCADING STYLE SHEETS (CSS)

Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a markup language. CSS is designed
primarily to enable the separation of document content from document presentation,
including aspects such as the layout, color fonts. It allows one to adapt the
presentation to different types of devices, such as large screens, small screens, or
printers. CSS is independent of HTML and can be used with any XML based
markup language.

Fig 3.3 CSS [3]

12
• JAVASCRIPT

JavaScript is the client-side scripting language of the web. It‟s one of the most
popular and in- demand skills in today‟s job market for good reason. JavaScript not
only enables you to add powerful interaction to websites, but is also the foundation
of a lot of commonly used libraries like jQuery.

Fig 3.4 Java Script [3]

13
• PHP (Hypertext Preprocessor)

The PHP Hypertext Preprocessor (PHP) is a programming language that allows web
developers to create dynamic content that interacts with databases. PHP is basically used for
developing web-based software applications. This tutorial helps you to build your base with
PHP.

Fig 3.5 Php [4]

14
• MYSQL
MySQL is a relational database management system based on the Structured Query
Language, which is the popular language for accessing and managing the records in the
database. MySQL is open-source and free software under the GNU license. It is supported
by Oracle Company.

Fig 3.6 MYSQL [5]

15
CHAPTER - 4
IMPLEMENTATION AND RESULTS

In this section discusses findings and observations done by some research works
on web- based blood bank management system

In this project, we'll be building our very own Blood bank using HTML CSS for
Front end part and for back end we will be using PHP AND MYSQL
For storing the information in the databases

Note:
✓ In my case I have used xampp software best known it for database
connectivity through php it become quite easy to directly create, update,
delete or modify the table in the databases.
✓ For writing the codes I have use Visual studio code editor as here we can
many features and Sometimes also get suggestions for fixing the error help
while writing the codes basically connectivity become easier.
✓ Used some google fonts scripts and JavaScript's in web-page for better
preview

16
4.1 Getting Started

In Online blood bank management system” is a web application that allows to


access the whole information about blood bank management software, readily
scalable and adaptable to meet the complex need of blood bank who is the key
facilitator for the health care sector; it also supports all the functionalities of
blood bank. It is used for maintaining information about the campus. The project
includes three main modules admin, donor, and acceptors. The admin module
focuses on both the admin and acceptors. Each member in a donor and acceptor
is given a user id and password, which identifies them uniquely. The member is
given a login form to enter the login details. Each member in the staff can
change the password; inquire on a particular blood group and information on
‘Why to donate blood’. In this you can store the information about acceptors.
The whole project makes work easier for every person using the software in
their required category.

17
First of all, we will be designing the front – End part of the website using
HTML, CSS and JAVASCRIPT and for this we have design the homepage page
of our website as you can see in the given screenshot

Fig 4.1 Homepage[4]

18
4.2 Linking and designing more pages

Here after we will be designing and linking more pages for our further requirement and before
linking the web-pages we should know what we are linking and why we are linking thereafter
as you know our project is Blood bank management system, So we have made two main
pages one for the hospital and for another for the receiver but for this first of all user must be
registered by filling the proper Information and here after he/she can login and easily check
the status what are the currently blood samples available so he can request that sample.

19
Proposed system
The proposed Blood Bank management system helps the people who are in need
of a blood by giving them all details of blood group availability or regarding the
donors with the same blood group.

The advantages of the proposed system

The people in need of blood can search for the donors by giving their blood
group and city name. it saves time as he can search donors online without going
anywhere. Using this system user can get blood in time and can save his relative
or friend life. Our website work 24x7 so user can get information of blood donor
any time. Blood donor can also get registered and save life of other person. The
main benefit of this system is the information of available blood group. When
blood is need in the operation then people have very less time to get the blood
available so if he get the information like who can give him blood in time in his
city is life saving. And here our system work, whenever a person need blood he
get information of the person who has the same blood group he needs.

20
MODULES OF BLOOD BANK MANAGEMENT SYSTEM

Online Blood Bank management system is to provide services for the people
who are in need of blood by getting help from the donors who are interested in
donating blood for the people. There are seven main modules in this system.

• Admin

• Hospital Registration

• Receiver Registration

• Modifying updating, deleting, Hospital, Receiver Information

• Acceptors

21
Admin:

Admin can manage both receiver & acceptors. He can add or remove any user
from the system. Each member in a donor & acceptor is given a user id and
password, which identifies him uniquely. From admin module use can change
donor details, delete donor or change the password.

· Change Password

· Modify donor details

· delete donor details

· Logout

Whenever a user wants to change his / her password he can select the change
password option. The system displays the form, which asks him for his old
password and new password. The system then compares the old password with
the existing password in the database and if they match then the password is set
to the new password in the database.

22
Hospital
From this module user can create their account, when user create his account the user get a
user id and password, which identifies him uniquely. From this module user can search
donor for blood and can also refer his friend to become a donor. Donor can also get
information like when he donated blood or when he will be able to donate blood.

Hospital Registration
In this module, people who are interested in donating blood get registered in my site and
give his overall details related to him, i.e. he fills in a registration form by giving the total
details such as name, address, city, sex, wt, dob, blood group, telephone numbers, e-mail
address, etc. He was also given two fields’ username and password to fill such that he was a
registered donor and he can enter the login form with his username and password and can
modify his details if needed.

Modifying Hospital Receiver Information


The registered donor only is able to modify his details; no other person can modify his
details as there was a login form which restricts others from entering the username and
password providing high security for the details given by the donor. If at all the donor wants
to modify his details, he was forced to give his username and password to enter in. After
giving the username and password it checks for the donor whether he is an existing donor or
not and if the username and password matches, he can then able to modify his total details.
If the username and password do not exist then he gets a message as ‘Wrong ID and
Password Entered, Try Again’.

23
Following links are available on Homepage

· Available blood Sample

· Sign in

· Update profile.

· Logout

Acceptors

This module helps user to find blood group. When user click on find a blood group system
ask him to enter blood group he wants to search. After entering the blood group, system
search for the availability of the blood group and give him the list of the donors who has the
same blood group. Whenever a user wants to change password, he can select the change
password option. Then system ask the user to enter old username and password then system
check the credentials and change the password. Clicking on logout button user can log out
from the system.

24
4.3 How to import and open database

Firstly, we Will import our Sql file (basically database file) for that you should
have XAAMP and MYSQL preinstalled on your pc
here are Some following steps which you can follow:

Step 1: Copy project folder.

Third, copy the project folder and paste it into the xampp/htdocs folder.

Step 2: Open xampp.

25
Step 3, open xampp and start the apache and MySQL.

• Step 4: Open browser.

Fifth, open a browser and go to URL “http://localhost/phpmyadmin/”

Step 5: Create database.

Sixth, click on databases tab and Create database naming “bloodbank_db”.

Step 6: Import “bloodbank_db.sql”.

26
Seventh, click on browse file and select “bloodbank_db.sql” file which is inside “database”
folder and after import click “go “.

• Step 7: Open browser and type folder name.

Eight, open a browser and go to URL “http://localhost/bloodbank/”.

Fig 4.1 [4] Homepage

27
4.4 Connecting and defining elements

We have created 4 tables of naming blood info, blood request, hospitals, receivers and
interested the data in them and also define primary and forgien key in the table for better
understanding.

After that I have create a file connection.php through which I am connecting to my database
as you see in the given screenshot

28
4.5 Checking database
open a browser and go to URL “http://localhost/phpmyadmin/”
You directly do the changes you want to do and can remove the unnecessary entries or
correction in the database it quickly updates the data and also save your time

29
Fig4.6 [4] how front-end and back-end works

30
CHAPTER -5
SNAPSHOT OF THE PROJECT

5.1 Hospital login preview

Fig 5.1 Hospital login preview [5]

31
5.2 Request for blood Sample

Fig 5.2 Request for blood sample [5]

32
5.3 Adding blood group information

Fig 5.3 Adding blood group information [5]

33
5.4 If Hospital want to update any information

Fig 5.4 update any information [5]

34
CHAPTER -6

CONCLUSION AND FUTURE SCOPE

6.1 CONCLUSION

The purpose of these project reviews was to collect information on how


an information system helped the management of blood banks. Based on
the reviews, it was found out that web-based blood bank systems provide
convenience, efficiency and security to the system users and hospitals
compared to the manual systems. It was found out that manual systems
have many disadvantages that disappoint and dissatisfy users. Indeed,
online blood bank applications make work easy, and ensures fast retrieval
of data when needed.

35
6.2 SCOPE FOR FUTURE WORK

This research study covers the three basic operations of blood banks,
namely: donor registration, monitoring of blood bags or products’
inventories, and monitoring of blood bags or products’ issuance. Also,
due to time-constraint, respondents will be from hospitals from North
Batinah Region in the Oman, though the research study talks about
blood banks in the Sultanate of Oman. In addition, the study considers
three possible users of the system, namely: hospital administrator,
doctors, and blood receptionists

36
REFERENCES

1. https://www.w3schools.com/html/default.asp

2. https://www.weblineindia.com/

3. https://acodez.in/scope-of-web-development/

4. https://frontendmasters.com/

5. https://status.net/templates/project-summary-report-template-
free- download/

37

You might also like