PHP Projects

POS Pharmacy System In PHP With Source Code

Project: POS Pharmacy System In PHP with source code

-To download POS pharmacy system project for free(Scroll Down)

In this system, User has to log in as admin. The pharmacist can create new prescriptions, manage stock. Admin can manage payments. He can view users, view prescriptions, manage/add medicine stock. 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. This project is developed using PHP, JavaScript, Bootstrap, and CSS. Talking about the project, it contains just a user side. All the management are done from the admin side like maintaining the daily sales report. From the user side, the users can view the homepage and see the contents available there. Through this site,  the admin can view his shop log with more ease. He/She can manipulate the activities inside their shop. Can add and maintain the dealer’s information.

About The System

POS Pharmacy System allows you to manage the medicines with ease. You can check each and every detail. The project consists of PHP, JavaScript, Bootstrap, and CSS. Talking about the project, it contains just an admin side. All the management are done from the admin side like adding customers to adding the drug or medicine dealer. From the user side, the users can view the homepage and see the contents available there. Through this site,  admin can maintain his business.

This project intends to provide the students with an environment where they can maintain a shop system. By doing this, it will allow them to gain the basic knowledge about using any kind of project management system. 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 sing up then you can view the admin dashboard. From there you can manage your all the necessary activities.

Features such as Editing site content, user management, and site settings are the most essential feature of a site. And these all features have made management of site easier as the user can change the content and setting any time he/she wants rather than opening the whole source code and changing each line of codes. This project in PHP helps in easy management of your fruit shop. Here the user can maintain their daily up to date records.

Note: Please do not try to delete any files within the given project folder. Doing so may lead up to fatal errors in the program.

Features
  1. Login
  2. Sales report view
  3. Add supplier and customer
  4. print receipt

https://www.youtube.com/watch?v=ptaODw3c5PY

How To Run??

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 databases tab
6th Step: Create database naming “sales” and then click on import tab
7th Step: Click on browse file and select “sales.sql” file which is inside “database” folder
8th Step: Click on go.

After Creating Database,

9th Step: Open a browser and go to URL “http://localhost/pharma/admin/

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


2.5 2 votes
Article Rating
Subscribe
Notify of
guest
39 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Antima
Antima
3 years ago

http://localhost/Pharma/ on this address when we type admin .. admin as username and password and than click on login button show ..username missing and password missing… why..please help 0){ session_start(); $_SESSION[‘admin_id’]=$row[0]; $_SESSION[‘username’]=$row[1]; header(“location:http://”.$_SERVER[‘HTTP_HOST’].dirname($_SERVER[‘PHP_SELF’]).”/admin.php”); }else{ $message=”Invalid login Try Again”; } break; case ‘Pharmacist’: $result=mysql_query(“SELECT pharmacist_id, first_name,last_name,staff_id,username FROM pharmacist WHERE username=’$username’ AND password=’$password'”); $row=mysql_fetch_array($result); if($row>0){ session_start(); $_SESSION[‘pharmacist_id’]=$row[0]; $_SESSION[‘first_name’]=$row[1]; $_SESSION[‘last_name’]=$row[2]; $_SESSION[‘staff_id’]=$row[3]; $_SESSION[‘username’]=$row[4]; header(“location:http://”.$_SERVER[‘HTTP_HOST’].dirname($_SERVER[‘PHP_SELF’]).”/pharmacist.php”); }else{ $message=”Invalid login Try Again”; } break; case ‘Cashier’: $result=mysql_query(“SELECT cashier_id, first_name,last_name,staff_id,username FROM cashier WHERE username=’$username’ AND password=’$password'”); $row=mysql_fetch_array($result); if($row>0){ session_start(); $_SESSION[‘cashier_id’]=$row[0]; $_SESSION[‘first_name’]=$row[1]; $_SESSION[‘last_name’]=$row[2]; $_SESSION[‘staff_id’]=$row[3]; $_SESSION[‘username’]=$row[4]; header(“location:http://”.$_SERVER[‘HTTP_HOST’].dirname($_SERVER[‘PHP_SELF’]).”/cashier.php”); }else{ $message=”Invalid login Try Again”; } break; case ‘Manager’: $result=mysql_query(“SELECT manager_id, first_name,last_name,staff_id,username FROM… Read more »

rajeev
rajeev
3 years ago

what is the username&password??

chris
chris
3 years ago

cant find the sales.sql

akhil
akhil
3 years ago

If i log in to the cashier the content of those are empty what to do?

Ayal.sasith
Ayal.sasith
3 years ago

Its not Working

Bamidele Odunayo
Bamidele Odunayo
2 years ago

You did a fantastic job….kudos. It works very well.

Bhagay
2 years ago

What’s the user name n password please

Farhad
2 years ago
Reply to  Bhagay

Username: admin
Password: admin

tevin more
tevin more
1 year ago

username missing
password missing
Please help.

shubham sarkar
2 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocspharmalogin.php:12 Stack trace: #0 {main} thrown in C:xampphtdocspharmalogin.php on line 12

how to solved this error?????????
please help me

Sayantan ghosh
Sayantan ghosh
2 years ago
Reply to  shubham sarkar

Use function name as mysqli_connect(). It will work smoothly! Earlier versions of PHP used the MySQL extension.
As you get errors, as per my knowledge all the functions in your code should be started as mysqli_……()

psonu
psonu
1 year ago
Reply to  shubham sarkar

check with mysql version if its 5 then it will work if its higher then you need to change mysqli, check with data base link first in file ( ‘sales’,$link)is available change to ($link, ‘sales’)

thaqib
thaqib
1 year ago
Reply to  psonu

Please explain more…. what do i need to change?

shubham sarkar
2 years ago

what is the username&password??

shubham sarkar
2 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in C:xampphtdocspharmalogin.php:18 Stack trace: #0 {main} thrown in C:xampphtdocspharmalogin.php on line 18

how to solved this error?????????
please help me

kid havannah
kid havannah
2 years ago

log in error. check the screenshot https://drive.google.com/open?id=1yu8198s4Z5ht1eiPV-zhDIbIdCwxyYrV

Sanaullah
Sanaullah
2 years ago

Thank you
Your site is very helpful

sonu
sonu
1 year ago

could you pleasae tell me what is the error in this i’m not able to open this

while login we are getting error “user name missing” “password missing”

Dahiru Muhd
Dahiru Muhd
1 year ago

Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in C:\xampp\htdocs\pharma\login.php:18 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pharma\login.php on line 18

please what is the solution

Shafikah
Shafikah
1 year ago

Hi, may i know the list of the apps that used for building this project ??

Shafikah
Shafikah
1 year ago

Hi, im still new in developing a system. Can i know all the software that used for building this pharmacy system.

sree
sree
1 year ago

can u provide report

Samik Chaudhary
Samik Chaudhary
1 year ago

Hey, i got serious problem when adding products from dashboard.
It says Field ‘cost’ doesnt have a default value in ….pharma\main\saveproduct.php on line 18
Please kindly help me
And also in next sales dashboard while adding sales by inputing customer name and cash and clicking save it shows error saying that Field ‘balance’ doesnt have a default value in savesales.php on line 23

Zaheer
1 year ago

I have the working this project, if any one need this then contact me on [email protected]

Mohammad Essa Mazlum

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\pharma\pharma\login.php:12 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pharma\pharma\login.php on line 12

Mohammad Essa Mazlum

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\pharma\pharma\login.php:12 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pharma\pharma\login.php on line 12

please help

Ahsan Sagheer
Ahsan Sagheer
1 year ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\pharma\login.php:12 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pharma\login.php on line 12

codeprojects
Editor
1 year ago
Reply to  Ahsan Sagheer

change mysql_connect() to mysqli_connect()

Natasha
Natasha
1 year ago

Fatal error: Uncaught Error: Call to undefined function mysql_select_db()??????

please help me

39
0
Would love your thoughts, please comment.x
()
x