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

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

[quads id=1]


Author: Carmelo Garcia
2.5 2 votes
Article Rating
Subscribe
Notify of
guest
40 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Antima
Antima
6 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
6 years ago

what is the username&password??

chris
chris
5 years ago

cant find the sales.sql

akhil
akhil
5 years ago

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

Ayal.sasith
Ayal.sasith
5 years ago

Its not Working

Bamidele Odunayo
Bamidele Odunayo
5 years ago

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

Bhagay
4 years ago

What’s the user name n password please

Farhad
4 years ago
Reply to  Bhagay

Username: admin
Password: admin

tevin more
tevin more
4 years ago

username missing
password missing
Please help.

shubham sarkar
5 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
4 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
4 years 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
4 years ago
Reply to  psonu

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

shubham sarkar
5 years ago

what is the username&password??

shubham sarkar
5 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
5 years ago
Sanaullah
Sanaullah
4 years ago

Thank you
Your site is very helpful

sonu
sonu
4 years 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
4 years 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
4 years ago

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

Shafikah
Shafikah
4 years ago

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

sree
sree
4 years ago

can u provide report

Samik Chaudhary
Samik Chaudhary
3 years 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
3 years ago

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

Mohammad Essa Mazlum
3 years ago

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
3 years ago

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
3 years 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
3 years ago
Reply to  Ahsan Sagheer

change mysql_connect() to mysqli_connect()

Natasha
Natasha
3 years ago

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

please help me

jones
jones
1 year ago

POS is not working