You are on page 1of 57

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

"Jnanasangama", Belgaum-590014, Karnataka

A
MINI PROJECT REPORT ON
“PHARMACY MANAGEMENT SYSTEM”
Submitted in partial fulfilment for the requirement of the 5th Semester

BACHELOR OF ENGINEERING
in
COMPUTER SCIENCE AND ENGINEERING

Submitted by

AKSHAY D (1AH19CS004)

Under the Guidance of


Mrs. POORNIMA R M
Assistant Professor
Department of CSE

Department of Computer Science and Engineering


ACS COLLEGE OF ENFINEERING
#74, Kambipura, Mysore Road, Bengaluru-560074

2021-2022
ACS COLLEGE OF ENGINEERING
#74, Kambipura, Mysore Road, Bengaluru-560074
Department of Computer Science and Engineering

CERTIFICATE

This is to certify that the Mini Project report on topic "PHARMACY MANAGEMENT
SYSTEM" has been successfully submitted by Akshay D (1AH19CS004) a bonafide
students at ACS College of Engineering affiliated to Visvesvaraya Technological University,
Belagavi during the year 2021-2022. It is certified that all corrections/suggestions indicated
for Internal Assessment have been incorporated in the report submitted to the department. The
Mini Project report has been approved as it satisfies the academic requirement in respect of
the mini project work as prescribed in 5th semester.

Signature of the Guide Signature of the HOD


Mrs. Poornima R M Dr. V Mareeswari
Assistant Professor, CSE Associate Professor &HOD, CSE
ACSCE, Bangalore ACSCE, Bangalore

NAME OF THE EXAMINER NAME OF THE EXAMINER

Signature with Date Signature with Date

1.

2.
ACKNOWLEDGMENT

I take this opportunity to express my sincere gratitude and respect to the ACS College of
Engineering, Bengaluru for providing me an opportunity to carry out my mini project
report.

I express my deep regards to our honourable Chairman Dr. A C Shanmugam for


providing me an opportunity to fulfil my ambition in this prestige institute.

I would like to express my immense gratitude to Dr. M S Murali, Principal, ACS College
of Engineering, Bengaluru, for his timely help and inspiration during the tenure of the
course.

I express my sincere regards and thanks to Dr. V Mareeswari, Associate Professor &
HOD, Computer Science and Engineering, ACSCE, Bengaluru for the encouragement and
support throughout encouragement the work.

With the profound sense of gratitude, I acknowledge the guidance support and
encouragement to my guide Mrs. Poornima R M, Assistant professor of Computer
Science and Engineering, ACSCE, Bengaluru.

AKSHAY D
(1AH19CS004)
ABSTRACT

Nowadays, “PHARMACY MANAGEMNET SYSTEM” is one of the most essential took that
are mostly used in medical store: 1 is mostly used to manage pharmacy related activities such as
medical inventory, record keeping, sales management as well as managing the drug stock and
information of the expired medicines. Many pharmacies are still operating manually; they don't have
adequate software to manage their daily activities. It needs the pharmacist assistant to check the expired
date of the medicine twice a week, and it can take a lot of time to find out whether certain medicine are
out of stock.
In this project we tried to develop a computerised and web based Pharmacy management system.
Our main intention is to allow this application to be used in most retailing pharmacies, where a small
point of customization will be required to each pharmacy in the implementation period. This system is
designed to overcome all challenges related to the management of medicine that were used to be
handled locally and manually.Pharmacy management system has its own significance to the retail
pharmacy shops. Using this system it will help to recognise all customers, employees, balance stock,
etc. It will manage all activities around the shop that increases productivity and maximize profit, i will

also minimize th risk to check expiry date of each product and also saves time.
CONTENTS

S.NO Pg.no

ACKNOWLEDGEMENT… .................................................................................................. I
ABSTRACT….........................................................................................................................II
1. INTRODUCTION. ............................................................................................................. 1
1.1 PROBLEM STATEMENT ......................................................................................................... 2
1.2 CASE STUDY ............................................................................................................................ 3
1.3 PROPOSED SYSTEM ............................................................................................................... 4
2.LITERATURE SURVEY ....................................................................................................5
2.2 LIMITATIONS. ............................................................................................................................. 6
3. SYSTEM REQUIREMENTS AND SPECIFICATION...................................................7
3.1 SYSTEMANALYSIS ................................................................................................................... 7
3.2 FUNCTIONAL REQUIREMENTS ............................................................................................. 7
3.3 NON-FUNCTIONAL REQUIREMENTS ................................................................................... 8
4. SYSTEM DESIGN...............................................................................................................9
4.1 ENTITY RELATIONSHIP MODEL. .......................................................................................... 9
ENTI ENTITY RELATIONSHIP MODEL FOR PHARMACY MANAGEMENT ............. 9
4.2LOGICAL DATABASE DESIGNE ............................................................................................ 10
SCHEMA DIAGRAM. .......................................................................................................... 10
SCHEMA DIAGRAM FOR PHARMACY MANAGEMENT .............................................10
5. FRONT END DESIGN .....................................................................................................14
SCREEN LAYOUT FOR WEBPAGES AND FORMS. ................................................................. 14
6. BASIC MODULES ............................................................................................................30
ADMIN MODULE. .......................................................................................................................... 30
PHARMACIST MODULE ............................................................................................................... 30
MEDICINE MODULE. .................................................................................................................... 30
USER MODULE. ............................................................................................................................. 30
FEEDBACK MODULE .................................................................................................................... 30
MEDICINE SOLD MODULE. ......................................................................................................... 31
7. IMPLEMENTATION USING MYSQL & PHP ............................................................32
TABLE CREATION. ....................................................................................................................... 32
INSERTION INTO TABLE ...... 34
TRIGGERS. ...................................................................................................................................... 35
STORED PROCEDURES. ............................................................................................................... 35
PHP CONNECTIVITY ..................................................................................................................... 36
8. SNAPSHOTS .................................................................................................................... 43
9. APPLICATION ................................................................................................................ 50
10.CONCLUSTION… ............................................................................................................ 51
11.REFERENCES.....................................................................................................................52
Pharmacy Management System

Chapter 1
INTRODUCTION

The main aim of the project is the management of the database of the pharmaceutical
shop. This project is insight into the design and implementation of a “PHARMACY
MANAGEMENT SYSTEM”. This is done by creating a database of the available medicines
in the shop. The primary aim of pharmacy management system is to improve accuracy and
enhance safety and efficiency in the pharmaceutical store. The aim of this project is to
develop software for the effective management of a pharmaceutical store. We have developed
this software for ensuring effective policing by providing statistics of the drugs in stock. The
database is then connected to the main program by using interconnection of the Visual Basic
program and the database already created. Pharmacy management system is useful to
maintain correct database by providing an option to update the drugs in stock. This is
pharmacy management system; it is used to manage most pharmacy related activities in the
pharmacy.

Pharmacy management system is a management system that is designed to improve accuracy


and to enhance safety and efficiency in the pharmaceutical store. This program can be used in
any pharmaceutical shops having a database to maintain. It is a computer based system which
helps the Pharmacist to improve inventory management, cost, medical safety etc. The software
used can generate reports, as per the user’s requirements. Using this pharmacy management
system user is also able to generate report within a specified period of time. The system allows
the user to enter a manufacturing and expiry date for a particular product or drug during opening
stock and sales transaction. The software can print invoices, bills, receipts etc. It can also
maintain the record of supplies sent in by the supplier. The system will also give report showing
the list of products expiry after a specified date before the product eventually expires. The
system services and goals are established by consultation with system user. It also involves
manual entry upon arrival of new batches of drugs and upon drug movement out of the
pharmacy for a certain period. Pharmacy management system is being build. Pharmacy
management system is robust, integrated technology. every month, the pharmacist may want to
generate report for the movement of drugs in and out of the pharmacy, getting information about
the drugs e.g. expiry date, date purchased, number of drug type left, location of a drug in the

Dept. of CSE, ACSCE 2021 -22 Page 1


Pharmacy Management System

pharmacy. Pharmacy management system deals with the maintenance of drugs and consumables
in the pharmacy unit. This pharmacy management system is user friendly.

This project will involve design and implementation of a computerized stock control system.
This is a system that will allow an easy and effective way to control and maintain business
processes. For instance stock levels which were initially manual will be automated. Maximum
stock levels will be computerized hence investment of inventory will be kept at minimum so that
the funds are made available for more productive uses thereby avoiding borrowing and
consequent loss on interest. Losses will be minimized on account of obsolescence due to
overstocking. When danger levels are reached, the system will then automatically place an order
to the supplier informing him/her to supply the required product and in the required quantity
(Predetermined reorder quantity).Minimum stock levels will be maintained automatically
making sure that items are available in the store where and when needed. The system is intended
to run on a networked environment so information will be shared efficiently hence reducing on
the time wasted by moving from one place to another hence a database will be used to capture
the information. This will increase the privacy of the customer’s information since the database
will be accessed by authorized personnel only.

1.1PROBLEM STATEMENT:
Every organization today is committing thousands of dollars in making sure it matches with
the trends of global growth in the world of technology. This has made exchange of goods and
services easier considering that transactions are computerized or networked to be done over the
now famous Internet. It is in this wake of reality that many efforts are made to ensure efficient,
reliable and cost effective means of controlling the flow of stock in an organization. Business
processes are done manually which is prone to error. For instance maintaining stock levels is not
an easy task as a lot of time is wasted when stock taking is in process. I.e. the store has to be
closed for at least three days to allow the process to be carried out. Purchase process is done
manually which wastes a lot of time and money since the procurement personnel has to travel to
the supplier so as to place an order. Keeping customer’s information is also a challenge to many
businesses minus the database to restrict the number of people who should have access to the
information. This calls for a control system that will foresee perfect control of business
transactions and ensure stock flow stability.

Dept. of CSE, ACSCE 2021 -22 Page 2


Pharmacy Management System

1.2Case Study

The success of any organization hinges on its ability to acquire accurate and timely data
about its operations, to manage this data effectively, and to use it to analyse and guide its
activities. It deals with the automating tasks of maintaining of Bills. In Pharmacy, Billing
management is the key process. In addition, Pharmacy management system will be able to
process drug prescription with ease. Including safe data store about medicine as well as fast
searching, delete and update of medicines. The pharmacy management system is built for the
sake of ensuring effective and clear data saving and manipulating as well as neat work on the
pharmacy medical products. The pharmacy management system is easy for use so the user
can do pharmacy actions without ambiguities. This refers the pharmacy management system
project highly minimize time and resource by which, searching the medicine data you can get
the data in quickest time. The main Objectives of the PMS is making the pharmacy
organizations computerized by creating neat work through minimizing or eliminating wasting
of time as well as removing the resources such as papers for data saving since know a days is
paper based, decrease malfunctioned works on the medical usage by giving correct
information on each medicine

This easy-to-use, integrated database application is geared towards reducing time spent on
administrative tasks. The system is intended to accept process and generate report accurately
and any authorized user can access the system at any point in time provided software is
available. The system is also intended to provide better services , provide meaningful,
consistent, and timely data and information and finally promotes efficiency by converting paper
processes to electronic form. The system was developed using technologies such as,
PHP,HTML,CSS and MySQL. PHP,HTML,CSS is used to build the user interface and
database was built using MySQL. The system is free of errors and very efficient and less time
consuming due to the care taken to develop it. All the phases of software development cycle
are employed, and it is worthwhile to state that the system is very robust. Provision is made
for future development in the system.

Dept. of CSE, ACSCE 2021 -22 Page 3


Pharmacy Management System
1.3Proposed System
The design of the pharmacy management system is based on the computer which will
simplify the maintenance of the information, accessible and efficient. The “PHARMACY
MANAGEMENT SYSTEM” will provide the information about the end of the drugs in the
medical so that the physician can order them drugs before the end. The admin and pharmacist
will get more accurate results at the time sell, about the details of the use of medicines and the
dosages so that the system will become more reliable to use than the present system. The records
of each work will be secure as to access the information the user must have to provide the ID
and password in the system.

Dept. of CSE, ACSCE 2021 -22 Page 4


Pharmacy Management System

CHAPTER 2

LITERATIRE SURVEY
HHIMS [1] is a Free and Open Source Hospital Health Information Management
System designed for use in Sri Lanka government hospitals by ICTA (Information and
Communication Technology Agency of Sri Lanka). It includes a patient record system, a

pharmacy management system and a laboratory information system. This system


is designed to replace paper records.
There are many functionalities for this system in addition to pharmacy management such
as patient management, clinic management, consultation, laboratory information
management. This may not suitable for the Central Pharmacy Management System because
it contains more additional functionalities like above. PMS for Central pharmacy has been
developed for focusing on pharmacy functions management. But also, it has similarities
such as drug maintenance, reports, notifications and logs.

ScriptPro [2] is a technology company founded in 1994. Corporate headquarters are in


the Kansas City area. ScriptPro's SP Central Pharmacy Management System allows a
pharmacy to process, track, and dispense all prescriptions with the highest level of security,
accuracy, and efficiency. Followings are some key features of it:
• Barcode driven workflow tools to manage high volumes of dispensing and promote
safety at every step of the dispensing process
• Industry-leading drug database including visual drug verifications to minimize
dispensing errors
• Inventory management controls to efficiently manage pharmacy inventory and
minimize out-of-stock items
• Pharmacy reporting engine for monitoring financial and key performance indicators
ScriptPro pharmacy management system has some same functionalities with implemented PMS
such as stock maintenance, out of stock management, report generating. And it has more
additional functions rather than ScriptPro system such as upload prescriptions, search product
availability on web, employee management.

Dept. of CSE, ACSCE 2021 -22 Page 5


Pharmacy Management System

2.1 LIMITATIONS
• Time consumption in data entry as the records are to be manually maintained faculties
a lot of time.

• Lot of paperwork is involved as the records are maintained in the files and registers.
• Reliable on use of papers for storing valuable data information is not at all reliable.
• Storage Requires as files and registers are used, so the storage space requirement is
increased.

• Data is difficult as the data is stored using papers in files and registers manually.

Dept. of CSE, ACSCE 2021 -22 Page 6


Pharmacy Management System

CHAPTER 3

SYSTEM REQURIMENTS AND SPECIFICATION


3.1SYSTEM ANALYSIS

System analysis will be performed to determine if it is feasible to design information


based on policies and plans of the organization and on user requirements and to eliminate the
weakness of present system.

➢ To ensure system/user interface


➢ To improve information quality and usability
➢ To upgrade system relative ability, availability, flexibility, and growth potential

3.2FUNTIONAL REQUIREMENTS

➢ Log in:

• To provide admin login, pharmacist login and user login.

➢ Admin activity:

• Here we need provide complete authority to access all the information about the
pharmacist, user, feedback, and medicines. Also allow to update the profile of
pharmacist and user.

➢ Pharmacist activity:

• Here we need to provide the pharmacist to view the user and medicine details.

➢ User activity:

• Here we need to provide the user to view the medicine available , to order the
medicine of the user according to their requirement and also based on the availability
of the stocks.

• It also provides the facility to view the feedback list and also to contact them at the
time of emergency via email or calling them directly using the stored details.

Dept. of CSE, ACSCE 2021 -22 Page 7


Pharmacy Management System

3.3NON-FUNTIONAL REQUIREMENTS

The following are the system requirements for hospital management system

HARDWARE SPECIFICATION

• Computer with 1.1GHz or faster processor


• minimum 2GB of RAM or more
• 2.5 GB of available hard disk space
• 5400 RPM hard drive
• 1366 X 768 or higher resolution display
• DVD-ROM drive

SOFTWARE SPECIFICATION

Frontend- PHP,HTML,CSS

Backend-MySQL

• Operating system - Windows 10


• Netbeans-12.6
• SQL command line client

Dept. of CSE, ACSCE 2021 -22 Page 8


Pharmacy Management System
CHAPTER 4
SYSTEM DESIG

4.1ENTITY RELATIONSHIP MODEL


An entity relationship model describes in a related things of interest in a specific domain
of knowledge. it is composed of entity types and specifies relation that can exist between
instance of those entity types. it is usually drawn in a graphical form of boxes(entities).

Fig 4.1.1 entity relationship model of pharmacy management

Dept. of CSE, ACSCE 2021 -22 Page 9


Pharmacy Management System
4.2SCHEMA DIAGRAM

A Schema is a structure behind data organization. It is a visual representation of how


different table relationship enables the schema underlying machine business rule for whichthe
database is created. Here all database tables are designed with unique columns and specifies
features.
ADMIN

Admin_id Admin_name Admin_password Admin_phone Admin_email

MEDICINE
Med_id Ph_id Med_name Quantity Expiry_date Amount

PHARMACIST
Ph_id Ph_name Ph_password Ph_address Ph_phone Ph_email Admin_id

USER
User_id User_name User_password User_phone User_email

FEEDBACK
Rating Review User_id

MEDICINE_SOLD
Med_id Med_name Quantity Amount User_id

Schema diagram of pharmacy management

Dept. of CSE, ACSCE 2021 -22 Page 10


Pharmacy Management System
NORMALIZATION:

 ADMIN

Admin_id Admin_name Admin_password Admin_email Admin_phone

FUNCTIONAL DEPENDENCIES
Candidate key- Admin-id
Admin_id -> (Admin_id, Admin_name, Admin_password, Admin_email, Admin_phone)
Admin_email -> (Admin_name, Admin_password, Admin_id)

JUSTIFICATION
• The relation is in 1NF as all the attributes are atomic.
• The relation is also present in 2NF as all the non-prime attributes are fully functionally
dependent on the prime attribute Admin_id and there is no partial dependency.
• The relation is also present in 3NF as there are no transitive dependency.

 FEEDBACK

User_id Ratings Review

FUNCTIONAL DEPENDENCIES
Candidate key- User_id
User_id -> (User_id, ,Ratings, Review)

JUSTIFICATION

• The relation is in 1NF as all attributes are atomic.


• The relation is in 2NF as all non-prime attributes are fully functionally dependent on
prime attribute.
• The relation is in 3NF as there are no transitive dependency between prime attribute
User_id and other non-prime attributes.

 MEDICINE_SOLD
\

Med_id Med_name Quantity Amount User_id

Dept. of CSE, ACSCE 2021 -22 Page 11


Pharmacy Management System

FUNCTIONAL DEPENDENCIES
med_id -> Med_name, Med_id, Quantity
,Amount,User_id
Med_id->
Med_name.

JUSTIFICATION
• The relation is in 1NF as all attributes are atomic.
• The relation is in 2NF as all non-prime attributes are fully functionally dependent on
prime attribute Med_id.
• The relation is in 3NF as there are no transitive dependency.

 MEDICINE

Med_id Ph_id Med_name Quantity Exp_Date Amount

FUNCTIONAL DEPENDENCIES:
Med_id->(Med_id,Med_name,Quantity,Expr_date,amount)

JUSTIFICATION:
• The relation is in 1NF as all attributes are atomic.
• The relation is in 2NF as all non-prime attributes are fully functionally dependent on
prime attribute Med_Id.
• The relation is in 3NF as there are no transitive dependency between prime attribute Id
and other non-prime attributes

 PHARMACIST

Ph id Ph_name Ph_password Ph_address Ph_phone Ph_email Admin_id

FUNCTIONAL DEPENDENCIES:
Candidate key- category_id
Ph_id -> (Ph_id, Ph_name, Ph_password, Ph_address, Ph_phone, Ph_email, Admin_id)
JUSTIFICATION :
• The relation is in 1NF as all attributes are atomic.

Dept. of CSE, ACSCE 2021 -22 Page 12


Pharmacy Management System
• The relation is in 2NF as all non-prime attributes are fully functionally dependent on
prime attribute.
• The relation is in 3NF as there are no transitive dependency between prime attribute
Ph_id and other non-prime attributes.

 USER

User_id User_Name User_password User_phone User_email

FUNCTIONAL DEPENDENCIES:
Candidate Key -> (User_id)
User_id -> (User_id, User_name, User_password, User_phone, User_email)

JUSTIFICATION :
• The table is 1NF as all the attributes are atomic in nature.
• The relation is in 2NF as there is no partially dependency on non-prime attributes.
• The table is in 3NF as there is no transitive dependency between prime attributes
User_id and other non prime attribute

Dept. of CSE, ACSCE 2021 -22 Page 13


Pharmacy Management System
CHAPTER 5

FRONT END DESIGN

SCREEN LAYOUTS FOR WEBPAGES AND FORMS:

Screen Layout for User Login page:

<html>
<head>
<style>
#title{

}
ul {

}
li {

background-color:#00b300; font-size:33px;
color:white; margin-left:20px; margin-top:20px;
margin-bottom:20px;

list-style-type: none; margin: 0;


padding: 0; overflow: hidden;
background-color: #00b300;

float: right;

#titlehead{

Dept. of CSE, ACSCE 2021 -22 Page 14


Pharmacy Management System

float: left;

}
li a {

display: block; color: white; font-size:20px;


text-align: center; padding: 16px 20px; margin-top:10px;
text-decoration: none;

li a:hover:not(.active) {
background-color: #4dff4d;
}
.active {
background-color: #4dff4d;
}

*{
box-sizing: border-box;
}
input[type=text], select,

textarea,input[type=password],input[type=email],input[type=number],input[type=date] {
margin-right:400px;
text-align:center; width: 40%; padding: 12px;
border: 1px solid #ccc; border-radius: 4px; resize: vertical;

}
label {

Dept. of CSE, ACSCE 2021 -22 Page 16


Pharmacy Management System

font-size:18px; margin-left:450px;

padding: 12px 12px 12px 0; display: inline-block;

input[type=submit] {
background-color: #00b300; color: white;
padding: 12px 20px; border: none;
border-radius: 4px; cursor: pointer; float: right;
}
input[type=submit]:hover { background-color: #4dff4d;
}
.container {

border-radius: 5px; background-color: #ffffff; padding: 20px;


}
.col-25 {
float: left; width: 50%; margin-top: 6px;
}
.col-75 {
float: left; width: 50%; margin-top: 6px;
}
/* Clear floats after the columns */
.row:after {
content: ""; display: table; clear: both;
}
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on
top of each other instead of next to each other */
@media screen and (max-width: 600px) {

.col-25, .col-75, input[type=submit] { width: 100%;


margin-top: 0;
}
}

Dept. of CSE, ACSCE 2021 -22 Page 17


Pharmacy Management System

</style>

</head>
<body>
<ul>

</ul>

<li id="titlehead"><p id="title">Pharmacy</p></li>


<li style=margin-right:10px;><a href="admin_login.php">Admin</a></li>
<li><a href="pharmacist_login.php">Pharmacist</a></li>
<li><a class="active" href="user_login.php">User</a></li>
<li><a href="home.php">Home</a></li>

<h2 style="font-style:italic; font-size:30px;padding-left:30px;">User Login</h2>


<div style="text-align:center;"> <img src="image\user.png"> </div>
<div class="container">
<form action="user_login_action.php" method = "get">
<div class="row">
<div class="col-25">
<label for="fname">User Id</label>
</div>
<div class="col-75">
<input type="text" pattern=".{1,}" required name="userid" placeholder="Your Id..">
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Password</label>
</div>
<div class="col-75">

Dept. of CSE, ACSCE 2021 -22 Page 18


Pharmacy Management System

<input type="password" pattern=".{1,}" required name="pass" placeholder="Your

Password...">
</div>
</div>
<div class="row">
<input type="submit" style="margin-right:600px; margin-top:10px;" value="Submit">
</div>
</form>
<h4 style="text-align:center;margin-left:1%;margin-top:5pt;"> Not a member / <a
href='user_signup.php'>signup</a></h4>
</div>
</body>
</html>

Screen layout for User Signup page:


<html>
<?php
session_start();
?>
<head>
<style>
#title{
background-color:#00b300; font-size:33px;
color:white; margin-left:20px; margin-top:20px;
margin-bottom:20px;

}
ul {
}
li {

Dept. of CSE, ACSCE 2021 -22 Page 19


Pharmacy Management System

}
}
li a {

}
.active {

}
*{

list-style-type: none; margin: 0;


padding: 0; overflow: hidden;
background-color: #00b300;

float: right; #titlehead{


float: left;

display: block; color: white; font-size:20px;


text-align: center; padding: 16px 20px; margin-top:10px;
text-decoration: none;

li a:hover:not(.active){
background-color: #4dff4d; background-color: #4dff4d;
box-sizing: border-box;

input[type=text], select, textarea,input[type=password],input[type=email],input[ty


pe=number],input[type=date] {
margin-right:400px; text-align:center; width: 40%; padding: 12px;

Dept. of CSE, 2021 -22

Dept. of CSE, ACSCE 2021 -22 Page 20


Pharmacy Management System

border: 1px solid #ccc; border-radius: 4px; resize: vertical;


}
label {

font-size:18px; margin-left:450px;
padding: 12px 12px 12px 0; display: inline-block;
}
input[type=submit] { background-color: #00b300; color: white;
padding: 12px 20px; border: none;
border-radius: 4px; cursor: pointer; float: right;
}
input[type=submit]:hover { background-color: #4dff4d;
}

.container {

}
.col-25 {

}
.col-75 {

border-radius: 5px; background-color: #ffffff; padding: 20px;

float: left; width: 50%; margin-top: 6px;

float: left;

width: 50%; margin-top: 6px;


}

Dept. of CSE, ACSCE 2021 -22 Page 21


Pharmacy Management System

/* Clear floats after the columns */


.row:after {
content: ""; display: table; clear: both;
}
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on
top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.col-25, .col-75, input[type=submit] { width: 100%;
margin-top: 0;
}
}
</style>
</head>
<body>
<ul>
<li id="titlehead"><p id="title">Pharmacy</p></li>
<li style=margin-right:10px;><a href="admin_login.php">Admin</a></li>
<li><a href="pharmacist_login.php">Pharmacist</a></li>
<li><a class="active" href="user_login.php">User</a></li>

<li><a href="home.php">Home</a></li>
</ul>
<h2 style="font-style:italic; font-size:30px;padding-left:30px;">User Signup</h2>
<div style="text-align:center;"> <img src="image\user.png"> </div>
<div class="container">
<form action="user_signup_action.php" method = "get">
<div class="row">
<div class="col-25">
<label for="lname">User Id</label>
</div>
<div class="col-75">
<input type="text" pattern=".{1,}" required name="userid" placeholder="Enter user Id...">

Dept. of CSE, ACSCE 2021 -22 Page 22


Pharmacy Management System

</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Name</label>
</div>
<div class="col-75">
<input type="text" pattern=".{1,}" required name="name" placeholder=" Name...">
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Password</label>
</div>
<div class="col-75">

<input type="password" pattern=".{1,}" required name="pass" placeholder=" password...">

</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Phone Number</label>
</div>
<div class="col-75">
<input type="text" pattern=".{1,}" required name="number" 0

Display: block; color: white; font-size:20px;


text-align: center; padding: 16px 20px; margin-top:10px;
text-decoration: none;

Dept. of CSE, ACSCE 2021 -22 Page 23


Pharmacy Management System

}
li a:hover:not(.active) {

}
.active {

background-color: #4dff4d;

background-color: #4dff4d;

}
#img_title{
}
#posts{

}
#card{
#home_img{ padding-left:50px;
padding-bottom:10px;

#bottom_posts{ display: grid;


grid-template-columns: auto auto auto; padding: 10px;
display: grid;
grid-template-columns: auto auto auto; padding: 10px;

padding: 20px; font-size: 30px; text-align: center;

Dept. of CSE, ACSCE 2021 -22 Page 24


Pharmacy Management System

background-color:#FFFFEF; margin:150px; height:150px:


border-radius:5px;
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);

}
#done{

text-align:center; font-size:24px; padding:25px; margin-left:200px; margin-right:200px;

background-color: #00b300; color: white;


padding: 12px 20px; border: none;
border-radius: 4px; cursor: pointer;

}
table {
margin-left:10%; margin-top:0%;
background-color:white;

}
th,td {
font-size:18pt; padding:10pt; text-align:center;
}
</style>
</head>
<body>

<ul>
<li id="titlehead"><p id="title">Pharmacy</p></li>
<li style=margin-right:10px;><a href="pharmacist_logout.php">Logout</a></li>
<li><a class="active" href="pharmacist_home.php">Pharmacist</a></li>
</ul>

Dept. of CSE, ACSCE 2021 -22 Page 26


Pharmacy Management System

</body>
</html>

Similar template has been used for feedback, log, user and pharmacist.

Screen Layout for Buy medicine


<html>
<head>
<style>

#title{

ul {

li {
}

background-color:#00b300; font-size:33px; color:white;


margin-left:20px; margin-top:20px; margin-bottom:20px;
}

list-style-type: none; margin: 0;


padding: 0; overflow: hidden;
background-color: #00b300;
}
float: right;
#titlehead{
float: left;
}
li a {
display: block; color: white; font-size:20px;
text-align: center; padding: 16px 20px; margin-top:10px;

Dept. of CSE, ACSCE 2021 -22 Page 27


Pharmacy Management System

text-decoration: none;
}
li a:hover:not(.active) { background-color: #4dff4d;
}
.active {
background-color: #4dff4d;
}
*{
box-sizing: border-box;
}
input[type=text], select,
textarea,input[type=password],input[type=email],input[type=number],input[type=date] {
margin-right:400px; text-align:center; width: 40%; padding: 12px;
border: 1px solid #ccc; border-radius: 4px; resize: vertical;
}
label {
font-size:18px; margin-left:450px;
padding: 12px 12px 12px 0; display: inline-block;
}
input[type=submit] {
background-color: #00b300; color: white;
padding: 12px 20px; border: none;
border-radius: 4px; cursor: pointer; float: right;
}
input[type=submit]:hover { background-color: #4dff4d;
}
.container {
border-radius: 5px;

background-color: #ffffff; padding: 20px;


}
.col-25 {
float: left; width: 50%; margin-top: 6px

Dept. of CSE, ACSCE 2021 -22 Page 27


Pharmacy Management System

.col-75 {
float: left; width: 50%; margin-top: 6px;
}
/* Clear floats after the columns */
.row:after {
content: ""; display: table; clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on
top of each other instead of next to each other */
@media screen and (max-width: 600px) {

.col-25, .col-75, input[type=submit] { width: 100%;


margin-top: 0;
}
}
</style>
</head>
<body>
<ul>
<li id="titlehead"><p id="title">Pharmacy</p></li>
<li style=margin-right:10px;><a href="user_logout.php">Logout</a></li>
<li><a class="active" href="user_home.php">User</a></li>
</ul>
<h2 style="font-style:italic; font-size:30px;padding-left:30px;">Buy Medicine</h2>
<div style="text-align:center;"> <img src="image\medicine.png"> </div>
<div class="container">
<form action="cal.php" method = "get">
<div class="row">

<div class="col-25">
<label for="lname">Medicine Name</label>
</div>

<,l-75">

Dept. of CSE, ACSCE 2021 -22 Page 29


Pharmacy Management System

<input type="text" pattern=".{1,}" required name="name" placeholder="Enter Medicine


Name...">
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Quantity</label>
</div>
<div class="col-75">

<input type="text" pattern=".{1,}" required name="qty" placeholder="

Quantity...">

value="BUY">

</form>
</div>
</body>
</html>

</div>
</div>
<div class="row">
<input type="submit" style="margin-right:600px; margin-top:10px;"

</div>

Dept. of CSE, ACSCE 2021 -22 Page 29


Pharmacy Management System
Connectivity:

<?php

$servername = "localhost";
$username = "root";
$password = "";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection

if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);

}
// Create database
$sql = "CREATE DATABASE IF NOT EXISTS pharmacydb"; if ($conn->query($sql) ===
TRUE) {
//echo "Database created successfully";
$conn->close();
}
?>

The above connect code has been connected using: include(“connection.ph”);

Dept. of CSE, ACSCE 2021 -22 Page 30


Pharmacy Management System

CHAPTER-6
BASIC MODULES

MODULES
The main modules in this project are Admin module, Pharmacist module, Medicine module,
User module, Feedback module and Logs module.

ADMIN MODULE:
The main purpose for developing this admin module is to manage the overall activity
of the pharmacist and medicine stock. He can login and can add other admins for managing the
pharmacy. He also adds the pharmacist to update the medicine stock. Admin has been given
privilege to view the stock and Feedback given by the User. He can view the log i.e.; admin
monitor the activity of the medicine being added or sold.

PHARMACIST MODULE:
This module is designed so that the pharmacist could manage the medicine. Pharmacist can
add the medicine when the stock is over. He can view the User and the total Stock that are
available in the pharmacy.

MEDICINE MODULE:
This module is used by the user to buy the medicine available in the stock. Medicine could
be added to the stock by the pharmacist.

USER MODULE:
The User module has been given privilege to log into his account. If the user wishes to buy
medicine, then he can view the medicine and can buy them by paying the appropriate amount
for the medicine. User can give feedback based on the service provided.

FEEDBACK MODULE:
This module is used for receiving the feedbacks from the User. Only Admin can view the
feedback given by the User.

Dept. of CSE, ACSCE 2021 -22 Page 31


Pharmacy Management System

MEDICINE_SOLD MODULE:
This module is developed to track down the activity in the medicine database. Any
deduction in the medicine by the pharmacist will be added into the medicine_sold table. Admin
can view the medicine_sold table, and can check the activity in the medicine database.

Dept. of CSE, ACSCE 2021 -22 Page 32


Pharmacy Management System

CHAPTER-7

IMPLEMENTATION USING MYSQL AND PHP


Table creation

Admin Table:

CREATE TABLE `admin` (


`admin_id` int(50) NOT NULL ,
`admin_name` varchar(50) NOT NULL,
`admin_password` varchar(50) NOT NULL,
`admin_phone` varchar(50) NOT NULL,
`admin_email` varchar(50) NOT NULL, PRIMARY KEY(`admin_id`));

Pharmacist Table:

CREATE TABLE `pharmacist`( ‘ph_id` varchar(50) NOT NULL,


`ph_name` varchar(50) NOT NULL,
`ph_password` varchar(50) NOT NULL,
`ph_phone` varchar(50) NOT NULL,
`ph_address` varchar(50) NOT NULL,
`ph_email` varchar(50) NOT NULL,
`admin_id` int(11) NOT NULL, PRIMARY KEY(`ph_id`),
CONSTRAINT `FKP` FOREIGN_KEY`(`admin_id`) REFERENCES `admin`(`admin_id`));

Medicine Table:

CREATE TABLE `medicine`(


`med_id` int(10) NOT NULL AUTO_INCREMENT,
`ph_id` varchar(10) NOT NULL,
`med_name` varchar(50) NOT NULL,
`quantity` varchar(50) NOT NULL,

Dept. of CSE, ACSCE 2021 -22 Page 33


Pharmacy Management System

`expiry_date` date NOT NULL,


`amount` int(50) NOT NULL, PRIMARY KEY(`med_id`),
CONSTRAINT `FKM` FOREIGN_KEY(`ph_id`)
REFERENCES `pharmacist`(`ph_id`));

User Table:

CREATE TABLE `user`(


`user_id` int(11) NOT NULL ,
`user_password` varchar(50) NOT NULL,
`user_name` varchar(50) NOT NULL,
`user_phone` varchar(50) NOT NULL,
`user_email varchar(50) NOT NULL, PRIMARY KEY(`user_id`));

Feedback TABLE:

CREATE TABLE `feedback`(


`user_id` int (100) NOT NULL AUTO_INCREMENT,
`rating` varchar (100) NOT NULL,
`review` varchar (100) NOT NULL));

Medicine_sold TABLE:

CREATE TABLE `medicine_sold`(


`med_id` int(10) NOT NULL,
`med_name` varchar(50) NOT NULL,
`quantity` int(11) NOT NULL,
`amount` int(5) NOT NULL, PRIMARY KEY(`med_id`),
CONSTRAINT `FKL` FOREIGN KEY (`med_id`)
REFERENCES `medicine` (`med_id`));

Dept. of CSE, ACSCE 2021 -22 Page 34


Pharmacy Management System
Insertion into tables

Admin Table

INSERT INTO `admin_database` (`admin_id`, `admin_name`, `admin_password`,


`admin_phone`,
`admin_email`) VALUES(12345, 'niharika R', 'niha123', '1234567890', 'niha@gmail.com');

Pharmacist Table

INSERT INTO `pharmacist_database` (`pharmacist_id`, `pharmacist_name`,


`pharmacist_password`,
`pharmacist_address`, `pharmacist_phone`, `pharmacist_email`, `admin_id`) VALUES ('4',
'pharma1', 'pharma1123', NULL, '1234567890', 'rakshitha@gmail.com', 12345);

Medicine Table

INSERT INTO `medicine_database` (`med_id`, `ph_id`, `medicine_name`, `quanity`,


`expiry_date`,
`amount`) VALUES
(14, '1', 'ceflox-15', '0', '2021-02-04', 25);

User Table

INSERT INTO `user_database` (`user_id`, `user_name`, `user_password`, `user_phone`,


`user_email`) VALUES (456, 'Prathiksha Rao', 'fewfwef', '09380662231',
'prathikshaphrao@gmail.com');

Feedback Table

INSERT INTO `feedback` (`user_id`, `Rating`, `review`) VALUES (56, 10, 'Awesome!');

Dept. of CSE, ACSCE 2021 -22 Page 35


Pharmacy Management System
Medicine_sold Table

INSERT INTO `medicine_sold` (`med_id`, `med_name`, `quantity`, `amount`, `user_id`)


VALUES (1, 'Amlodipine', '26', 'Inserted', 100);

Trigger:
A trigger is a special type of stored procedure that automatically runs when an event occurs
in the database server. When data modification event is made against a table, it automatically
affects the other triggered table.
BEFORE triggers run the trigger action before the triggering statement is run. AFTER triggers
run the trigger action after the triggering statement is run.

DELIMITER //
CREATE TRIGGER `medlog` AFTER UPDATE ON `medicine_database`
FOR EACH ROW INSERT INTO logs values(null, NEW.medicine_name, NEW.med_id,
NOW(), 'Updated', NEW.quanity)
// DELIMITER ;

DELIMITER //
CREATE TRIGGER `medlog1` AFTER INSERT ON `medicine_database`
FOR EACH ROW INSERT INTO LOGS values(null, NEW.medicine_name, NEW.med_id,
NOW(), 'Inserted', NEW.quanity)
// DELIMITER ;

Stored Procedure:
A stored procedure in SQL is a type of pre-written code that can be stored for later execution
and then used many times hence, saving time. It is a group of SQL statements that performs the
task. The stored procedure can be invoked explicitly whenever required.

DELIMITER $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `get medicine_database`() NO SQL
SELECT * from medicine_database$$ DELIMITER ;

Dept. of CSE, ACSCE 2021 -22 Page 36


Pharmacy Management System
PHP Connectivity
PHP code for user signup
<?php
session_start(); include("connection.php");include("functions.php");
$sql = "CREATE TABLE IF NOT EXISTS user_database ( user_id VARCHAR(50)
PRIMARY KEY,
user_name VARCHAR(50), user_password VARCHAR(50), user_phone VARCHAR(50),
user_email VARCHAR(50)
)";
if ($conn->query($sql) === TRUE) {
//echo "Table created successfully";
} else {
echo "Error creating table: " . $conn->error;
}
$userid = filter_input(INPUT_GET,'userid');
$username = filter_input(INPUT_GET,'name');
$userpass = filter_input(INPUT_GET,'pass');
$usernumber = filter_input(INPUT_GET,'number');
$useremail = filter_input(INPUT_GET,'email');
$sql = "SELECT * FROM user_database WHERE user_id = '$userid'";
$result = $conn->query($sql); if(mysqli_num_rows($result)>0){
echo "<div id='card'><p>User ID Already Exists</p><form action='user_signup.php'
method='get'><button type='submit' id='done'>Try Again</button></form></div>";
}else{
$sql = "INSERT INTO user_database (user_id, user_name, user_password, user_phone,
user_email)
VALUES ('$userid', '$username', '$userpass','$usernumber','$useremail')";
if ($conn->query($sql) === TRUE) {
//echo "New record created successfully";
$_SESSION["userid"] = $userid;
echo "<div id='card'><p>New user Successfully Added</p><form action='user_home.php'
method='get'><button type='submit' id='done'>Done</button></form></div>";

Dept. of CSE, ACSCE 2021 -22 Page 37


Pharmacy Management System

} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
}
$conn->close();
?>

PHP Code for User Login

<?php session_start();
require('connection.php');

$userid = filter_input(INPUT_GET,'userid');
$pass = filter_input(INPUT_GET,'pass');
$sql = "SELECT * FROM user_database
WHERE user_id='$userid' AND user_password='$pass'";
$result = $conn->query($sql); if ($result->num_rows > 0) {
$_SESSION["userid"] = $userid; header("Location: user_home.php");
}
else {
echo "<div id='card'><p>Invalid Id or Password!!!</p><p>Try again with valid Id
and Password</p><form action='user_login.php' method='get'><button type='submit'
id='done'>Done</button></form></div>";
}
?>
The similar php code have been implemented for admin and pharamacict code.

PHP Code for Add medicine


<?php session_start();
include('connection.php');
$sql = "CREATE TABLE IF NOT EXIST medicine_database ( med_id VARCHAR(10),
ph_id VARCHAR(10),

Dept. of CSE, ACSCE 2021 -22 Page 38


Pharmacy Management System

medicine_name VARCHAR(50), quanity VARCHAR(50), expiry_date VARCHAR(50),


amount VARCHAR(50) )";
if ($conn->query($sql) === TRUE) {
//echo "Table admin_database created successfully";
}
else {
echo "Error creating table: " . $conn->error;
}
$med_id = filter_input(INPUT_GET, 'med_id');
$ph_id = filter_input(INPUT_GET, 'ph_id');
$medname = filter_input(INPUT_GET,'medname');
$qty = filter_input(INPUT_GET,'qty');
$exdate = filter_input(INPUT_GET,'exdate');
$amt = filter_input(INPUT_GET,'amt');
$sql = $sql = "INSERT INTO medicine_database ( med_id, ph_id, medicine_name, quanity,
expiry_date, amount) VALUES ('$med_id', '$ph_id', '$medname', '$qty','$exdate','$amt')";

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


//echo "New record created successfully";
echo "<div id='card'><p>Medicine Successfully Added</p><form
action='pharmacist_home.php' method='get'><button type='submit'
id='done'>Done</button></form></div>";
}

else {

echo "Error: " . $sql . "<br>" . $conn->error;

$conn->close();
?>

Dept. of CSE, ACSCE 2021 -22 Page 39


Pharmacy Management System

The similar php code has been implemented for adding new admin and pharmacist.

PHP code for buying medicine

<?php
session_start(); include("connection.php");
$name = filter_input(INPUT_GET,'name');
$qty = filter_input(INPUT_GET,'qty');
$sql1="SELECT quanity FROM medicine_database WHERE medicine_name='$name'";
$sql="SELECT amount FROM medicine_database WHERE medicine_name='$name'";
$ret=mysqli_query($conn, $sql);
$ret1=mysqli_query($conn, $sql1); if($qty <= 0){
echo "<div id='card'><h1>Incorrect quantity. .. </h1><form action='user_home.php'><button
type='submit' id='done'>Done</button></form></div>";
}
while($row=mysqli_fetch_assoc($ret1))
{
$quan=$row['quanity']; if($quan <=0){
echo "<div id='card'><h1>Out of stock... </h1><form action='user_home.php'><button
type='submit' id='done'>Done</button></form></div>";
}
}
if(mysqli_num_rows($ret)>0)
{
while($row=mysqli_fetch_assoc($ret))
{
$amount=$row['amount'];
}
$_SESSION['mediname'] = $name;
$_SESSION['quantity'] = $qty;

$amt=$amount*$qty;

Dept. of CSE, ACSCE 2021 -22 Page 40


Pharmacy Management System

echo "<div id='card'><h2>Amount = ".$amt."</h2><form action='buy.php'


method='get'><button type='submit' id='done'>Proceed</button></form></div>";
}
if(mysqli_num_rows($ret)==0)
{
echo "<div id='card'><h1>Opps! We are Out of Stock... </h1><form
action='user_home.php'><button type='submit' id='done'>Done</button></form></div>";
}
?>

PHP Code for Delete pharmacist


<?php

session_start(); include("connection.php");
$pharmacistid = filter_input(INPUT_GET,'pharmacistid');
$sql = "DELETE FROM pharmacist_database WHERE pharmacist_id='$pharmacistid'";
if ($conn->query($sql) === TRUE) {
echo "<div id='card'><p>Pharmacist deleted successfully</p><form action='admin_home.php'
method='get'><button type='submit' id='done'>ok</button></form></div>";
}
else {
echo "Error deleting record: “. $conn->error;
}
?>

The similar php code has been implemented for deleting admin.

PHP code for Search medicine

<?php session_start();
include("connection.php");
$name = filter_input(INPUT_GET,'search');
$sql="SELECT * FROM medicine_database WHERE medicine_name='$name'";

Dept. of CSE, ACSCE 2021 -22 Page 41


Pharmacy Management System

$ret=mysqli_query($conn,$sql); if(mysqli_num_rows($ret)>0)
{
echo"<div id='dem'>";
echo"<table border='1'><tr><th>Medicine Name</th><th>Quantity</th><th>Expiry
Date</th><th>Amount/qty</th></tr>";
while($row=mysqli_fetch_assoc($ret))
{
echo"<tr><td>{$row['medicine_name']}</td><td>{$row['quanity']}</td><td>{$row['expiry_d
ate']}</td><td>{$row['amo unt']}</td></tr>";
}
echo"</table>";
echo"<form action='user_home.php'><button type='submit' id='done' style='margin-
left:10%;margin- top:20px'>Go Back</button></form>";
}
if(mysqli_num_rows($ret)==0)
{
echo "<div id='card'><h3>We dont have any such medicine, Come back later when the stock is
updated... </h3><form action='user_home.php'><button type='submit'
id='done'>Done</button></form></div>";
}
?>

PHP code for logging out from the page

<?php
$_SESSION["userid"] = ""; header("Location: home.php");

The similar php code has been used fr logging out from admin and pharmacist’s dashboard.

PHP code for viewing the feedback


<?php session_start();
include("connection.php");

Dept. of CSE, ACSCE 2021 -22 Page 42


Pharmacy Management System

$sql='SELECT * FROM feedback';


$ret=mysqli_query($conn,$sql); if(mysqli_num_rows($ret)>0)
{
echo"<div id='dem'>";
echo"<table border='1'><tr><th>USER ID</th><th>RATINGS</th><th>REVIEW</th></tr>"
while($row=mysqli_fetch_assoc($ret))
{
echo"<tr><td>{$row['user_id']}</td><td>{$row['Rating']}</td><td>{$row['review']}</td></tr
>";
}
echo"</table>";
echo"<form action='admin_home.php'><button type='submit' id='done' style='margin-
left:10%;margin-top:20px'>Go Back</button></form>"; echo"</div>";
}
if(mysqli_num_rows($ret)==0)
{
echo "<div id='card'><h1>No pharmacists are thier to view </h1><form
action='admin_home.php'><button type='submit' id='done'>Done</button></form></div>";
}
?>

The similar PHP code is used for viewing the log, medicine, admin and pharmacist.

Dept. of CSE, ACSCE 2021 -22 Page 43


Pharmacy Management System

CHAPTER 6

SNAPSHOTS
HOME PAGE:

USER SIGNUP: THIS IS FOR NEW USER REGISTRATION.

USERLOGIN:

IN SAME MANNER THE PHARMACIST LOGIN AND ADMIN LOGIN HAVE BEEN
DEPICTED.

Dept. of CSE, ACSCE 2021 -22 Page 44


Pharmacy Management System
DASHBOARD
1) Admin dashboard:

2)Pharmacist dashboard:

3)User dashboard:

Dept. of CSE, ACSCE 2021 -22 Page 45


Pharmacy Management System
BUY MEDICINE

TO VIEW MEDICINES WHICH ARE OUT OF STOCK

THIS CALCULATES THE AMOUNT OF MEDICINES BEING PURCHASED.

Dept. of CSE, ACSCE 2021 -22 Page 46


Pharmacy Management System
VIEW
1) VIEW MEDICINE: THIS IS USED TO VIEW THE MEDICINES AVAILABLE IN THE
STOCK

2) VIEW LOG: THIS IS USED TO VIEW THE MEDICINES PURCHASED FROM THE
STOCK.

3) VIEW FEEDBACK: THIS IS USED TO VIEW THE FEEDBACK GIVEN BY THE


USER/CUSTOMER.

Dept. of CSE, ACSCE 2021 -22 Page 47


Pharmacy Management System
ADD MEDICINE: THIS IS TO ADD THE MEDICINE TO THE STOCK BY THE
PHARMACIST.

THIS IS TO VIEW THE MEDICINE THAT HAS BEEN ADDED TO THE STOCK
SUCCESSFULLY.

Dept. of CSE, ACSCE 2021 -22 Page 48


Pharmacy Management System

ADD PHARMACIST: THIS IS TO ADD THE PHARMACIST.

THIS IS USED TO DELETE THE EXISTING PHARMACIST.

Dept. of CSE, ACSCE 2021 -22 Page 49


Pharmacy Management System

APPLICATIONS

• The pharmacy management system can be efficiently used by any medical store to
automate the process of data management and maintenance of records related to stock,
liquid flows, staffs, customers, and suppliers.
• New features, modules, and other components can be incorporated into the system as per
user requirements in future.
• A pharmacy management system helps you to manage your pharmacy's resources easily
and in an efficient manner.
• It helps you to easily keep track of medicine and equipment stock. You can easily check if
any of the out-of-stock items are available in any of your other stores.
• This program can be used in any pharmaceutical shops having a database to maintain.
• The software used can generate reports, as per the user’s requirements.
• The software can print invoices, bills, receipts etc.
• It can also maintain the record of supplies sent in by the Pharmacist.

Dept. of CSE, ACSCE 2021 -22 Page 50


Pharmacy Management System

CONCLUSION

The aim of this project is to develop software for the effective management of a
pharmaceutical store. We have developed this software for ensuring effective policing by
providing statistics of the drugs in stock. Pharmacy management system is useful to maintain
correct database by providing an option to update the drugs in stock. This is pharmacy
management system; it is used to manage most pharmacy related activities in the pharmacy.
User can buy any medicine by sitting at home. Also, this software is User friendly that any
person with the basic knowledge can access the software and can buy the medicine that he is
required.
Effective implementation of this software will take care of the basic requirements of
the pharmacy management system because i t is capable of providing easy and
effective storage of
information related to activities happening in the stipulated area. With these, the objectives
of the system design will be achieved.
Pharmacy management system was developed to ensure the security of information and
reliability of Pharmacy records when accessing and providing services to the
customers. The information gathered during the data collection was properly analysed and
the results provided the basis for the new system. The system was tested and found to
be functional and the outputs produced by this system were encouraging. The application
will hence reduce the loss of information unlike the existing system and also information
will be processed fast

Dept. of CSE, ACSCE 2021 -22 Page 51


Pharmacy Management System

REFERENCES

1. Learning PHP, MySQL, JavaScript, and CSS: A Step-by-Step Guide


to Creating Dynamic Websites – by Robin Nixon

2. MySQL /PHP Database Applications ,2’nd edition by Brad Bulger.


3. Understanding XAMPP, For Newbies! -by Mr John Henderson,Miss Lisa Shalek201

For PHP

➢ https://www.w3schools.com/php/default.asp

➢ https://www.sitepoint.com/php/

➢ https://www.php.net/

Dept. of CSE, ACSCE 2021 -22 Page 52

You might also like