pharmacy management

Pharmacy Management In PHP With Source Code

Project: Pharmacy Management In PHP with source code

Please scroll down and click on the download button to download the Pharmacy management project for free

The Pharmacy management is developed using PHP, JavaScript, Bootstrap, and CSS. It’s easy to operate and understand by users. The design is pretty simple and the user won’t find it difficult to understand, use and navigate. Talking about the project, it contains the admin side. All the management of customers, medicines, purchases, sales, and suppliers is done from the admin side.

About The System

The pharmacy management consists of PHP, JavaScript, Bootstrap, and CSS. Talking about the project, it contains an admin side section. All the management is done from the admin side like adding customers, medicines, suppliers to deleting their records. This project has only a single agenda, that is, to allow the shop owner to maintain his business efficiently. Here you have to sign up in order to perform the CRUD operations. When you sign up then you can view the admin dashboard. From there you can manage all the necessary activities.

Features:

  • View Dashboard
  • See all Customers, Add customer, Edit customer, Delete customer
  • View all Medicines, Add medicines, Edit medicines, Delete medicines
  • See all Suppliers, Add Suppliers, Edit Suppliers, Delete Suppliers
  • View all Sales, Add Sale, Edit Sale, Delete Sale
  • See all Purchases, Add Purchase, Edit Purchase, Delete Purchase
  • View Sales and purchase report

Login Details

Username: admin
Password: admin123

How To Run Project?

To run this project, you must have installed a virtual server i.e XAMPP on your PC (for Windows). This Pharmacy Management in PHP with source code is free to download, Use for educational purposes only!

After Starting Apache and MySQL in XAMPP, follow the following steps

1st Step: Extract file
2nd Step: Copy the main project folder
3rd Step: Paste in xampp/htdocs/

Now Connecting Database

4th Step: Open a browser and go to URL “http://localhost/phpmyadmin/”
5th Step: Then, click on the databases tab
6th Step: Create a database naming “pharmacy” and then click on the import tab
7th Step: Click on browse file and select “pharmacy.sql” file
8th Step: Click on go.

After Creating Database,

9th Step: Open a browser and go to URL “http://localhost/Pharmacy-Management/”

Project Demo

DOWNLOAD PHARMACY MANAGEMENT IN PHP WITH SOURCE CODE FOR FREE: CLICK THE BUTTON BELOW


If stuck or need help customizing this System as per your need, just comment down below and we will do our best to answer your question ASAP.

Author: codeprojects
2 1 vote
Article Rating
Subscribe
Notify of
guest
70 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Eeshwar
Eeshwar
3 years ago

Getting this error on home page:

Fatal error: Uncaught TypeError: mysqli_fetch_array(): Argument #1 ($result) must be of type mysqli_result, bool given in C:\xampp\htdocs\Pharmacy-Management\home.php:95 Stack trace: #0 C:\xampp\htdocs\Pharmacy-Management\home.php(95): mysqli_fetch_array(false) #1 {main} thrown in C:\xampp\htdocs\Pharmacy-Management\home.php on line 95

The UI of home page shown here above is not similar to the one given in project files… there are no boxes for “Create New Invoice”, “Add New Customer” etc….

Rohan Jain
Rohan Jain
2 years ago
Reply to  codeprojects

I am still getting this error could anyone help

Elias
Elias
2 years ago
Reply to  codeprojects

Where can i get ???

msahu
msahu
2 years ago
Reply to  codeprojects

from where

Rohan Jain
Rohan Jain
2 years ago
Reply to  Eeshwar

I am still getting this error could anyone help

rahul
rahul
2 years ago
Reply to  Eeshwar

i cant create invoice in your pharmacy managment project,but dear problem ,4/6/2022 1/1 Fatal error: Uncaught TypeError: mysqli_fetch_array(): Argument #1 ($result) must be of type mysqli_result, bool given in F:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php:80 Stack trace: #0 F:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php(80): mysqli_fetch_array(false) #1 F:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php(19): printInvoice(‘1’) #2 {main} thrown in F:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php on line 80 .print problem. solve my reply please demo or source code dear.

Eeshwar
Eeshwar
3 years ago

There are lots of errors!!!
Please provide code without errors

ajinkya
3 years ago

i cant create invoice in your pharmacy managment project

fuhar
fuhar
2 years ago
Reply to  codeprojects

pls tell valid password

pruthviraj
pruthviraj
3 years ago

there is an error on my profile section ……on line no 33 34 35 36…….please resolve it ..we are try to do but we coudent …please help

pruthviraj
pruthviraj
3 years ago

yes some of the errors are resolve .
But there is still error in My Profile section.
please resolve it

jagadees
jagadees
3 years ago

invalid username and password

DJango
DJango
3 years ago

Can I use this project with modification and sell it on my website.

shagil
shagil
3 years ago

getting a error on sql file.
Table ‘admin_credentials’ already exists

Elias
Elias
2 years ago
Reply to  shagil

getting a error on sql file.

H
H
2 years ago

Can someone send the correct username and password?

vansh
vansh
2 years ago
Reply to  H

same issue

harsh
harsh
2 years ago

i cant login its showing password or username invalid i tried admin as username and admin123 pw still cant login

mathias
mathias
2 years ago

i cant login its showing password or username invalid i tried admin as username and admin123 pw still cant login

bill
bill
2 years ago

i too am getting the invailid password

kishore
kishore
2 years ago

can anyone give me the correct username and password

life
life
2 years ago

I can’t login as it keeps telling invalid credentials

Abc
Abc
2 years ago

Pleaseeeee tell the correct username and password or update from your side.. it’s giving error of invalid username and password. ASAP

Last edited 2 years ago by Abc
Emmanuel
2 years ago
Reply to  Abc

use xampp version 5

efg
efg
2 years ago
Reply to  Abc

Do you know password

PHP Guru
PHP Guru
2 years ago
Reply to  efg

The username/password (admin/admin123) is correct – the SQL export is missing IS_LOGGED_IN column from the admin_credentials table.

To get around this, add IS_LOGGED_IN column to admin_credentials table

Screenshot 2022-04-11 at 22.54.08.png
abc
abc
2 years ago
Reply to  PHP Guru

Thank you so much it’s working!!! But now the problem is with invoice as it is not printing anything and shows the following error:
Fatal error: Uncaught mysqli_sql_exception: Table ‘pharmacy.sales’ doesn’t exist in
C:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php:79 Stack trace: #0
C:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php(79): mysqli_query(Object(mysqli),
‘SELECT * FROM s…’) #1 C:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php(19):
printInvoice(‘3’) #2 {main} thrown in C:\xampp\htdocs\Pharmacy-Management\php\manage_invoice.php
on line 79

Hope you will help with this too.

Last edited 2 years ago by pooja
abc
abc
2 years ago
Reply to  PHP Guru

FYI I have downloaded the updated sql file as you have told before still same problem with invoice…Please reply asap. Thankyou.

Elias
Elias
2 years ago
Reply to  abc

How did u get? “updated sql file

akash
akash
2 years ago
Reply to  PHP Guru

send full screenshot

Xyz
Xyz
2 years ago

Why are you not posting/updating project code..wa can’t login as invalid username and password.what’s the use then

ImmaKay
2 years ago

There is no sales table in the database and for that matter if u print invoice it gives u error can u please update the database by adding the sales table

rahul
rahul
2 years ago

please dear invoice no print ,i can,t try no solve.my help you. souce code for demo.

rohit
rohit
2 years ago

invalid user pass please tell right pass and user

Girish Hiranandani
Girish Hiranandani
2 years ago

There is no sales table in sql file, kindly provide, it would be great of you

rabidbunny50
rabidbunny50
2 years ago

the login is not happning…i have used the same admin and admin123 but its not working and i dont know how to fix it..help

anonymous
anonymous
2 years ago

username n password incorrect!!!!!!

anonymous
anonymous
2 years ago

error on my profile page any help????

abc
abc
2 years ago

Pleaseeee update invoice code file ..CAN’T print invoice. I need to submit this project tomorrow plzzz.

addisu tadele
addisu tadele
2 years ago

i want it please attach code to me

Phillips Anthony
Phillips Anthony
2 years ago

you can message me privately to get the solved version of this application. send an email to [email protected]

Phillips Anthony
Phillips Anthony
2 years ago
Lakshita Gaur
Lakshita Gaur
1 year ago

Hello, the link is not working

mayur sonawane
mayur sonawane
2 years ago

i want project report for this project source code please help me

Phillips Anthony
Phillips Anthony
2 years ago

Download the bug free version from this link.

https://nft.tailorsmind.com/single/pharmacy-management-system-free.html

nikkay
nikkay
2 years ago

how to fix the print section in invoice part?

Avik Mukherjee
Avik Mukherjee
2 years ago

Can anyone send me the project report please… [email protected]

Elias
Elias
2 years ago

Getting a error on sql file.

dark
dark
2 years ago

The requested URL was not found on this server.

Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.4 Server at localhost Port 80
what to do??

msahu
msahu
2 years ago

Kindly provide sales table details.

Lakshita Gaur
Lakshita Gaur
1 year ago
Reply to  msahu

did you find any

Monir
Monir
2 years ago

yes, i want to customize pharmacy software (not working properly) as per my need, how can i do this. plz response me below email address.

Ameer hamza
Ameer hamza
2 years ago

How to Watch full video of project

Lakshmi
Lakshmi
2 years ago

Can I get the documentation or ppt?

mohamed
mohamed
1 year ago
Siva
Siva
1 year ago

I am unable to add anything to database after submitting add button. When i click on add button, page is not responding. how can overcome the error

Poojitha
Poojitha
1 year ago

Cat rental project la errors ostunaye

shaguftha
shaguftha
8 months ago

its showing username or password incorrect

Mubeshir Mehmood
Mubeshir Mehmood
6 months ago

Warning: Undefined array key “doctor_name” in C:\xampp\htdocs\vitacare\php\add_new_customer.php on line 7

Warning: Undefined array key “doctor_address” in C:\xampp\htdocs\vitacare\php\add_new_customer.php on line 8

Sam
Sam
6 months ago

username and password showing invalid . and even after importing database to pharmacy.sql it’s showing error on myphpadmin

michelle Layos cose
michelle Layos cose
6 months ago

why i cant logging in to the website?

Ron
Ron
6 months ago

Fix this script by pasting in these statements in the Mysql admin:
http://localhost/phpmyadmin/index.php?route=/database/sql&db=pharmacy
——————————————————————————
ALTER TABLE admin_credentials
ADD COLUMN IS_LOGGED_IN TINYINT(1) NOT NULL DEFAULT 0;
——————————————————————————
To create a new “sales” table, you can use the following SQL statement:
——————————————————————————
CREATE TABLE sales (
 SALE_ID INT(11) NOT NULL AUTO_INCREMENT,
 INVOICE_ID INT(11) NOT NULL,
 MEDICINE_ID INT(11) NOT NULL,
 QUANTITY INT(11) NOT NULL,
 PRICE DOUBLE NOT NULL,
 TOTAL DOUBLE NOT NULL,
 PRIMARY KEY (SALE_ID),
 FOREIGN KEY (INVOICE_ID) REFERENCES invoices(INVOICE_ID),
 FOREIGN KEY (MEDICINE_ID) REFERENCES medicines(ID)
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin;
——————————————————————————

Sam
Sam
6 months ago
Reply to  Ron

Can you please send me the zipfile of bug free code, i tried this one but still there are issues

p sl
p sl
6 months ago

why when we add some medicine ,that medicine display on manage medicine interface,but it is not display on the medicine stocks interface ,?

pratham
pratham
6 months ago
Reply to  p sl

can u help me bro?

TALHA IJAZ
TALHA IJAZ
6 months ago

local host says username and password is invalid

TALHA IJAZ
TALHA IJAZ
6 months ago

can u please provide me the pptx,pdf documentation of this project!