Skip to main content

Pharmacy/Medical Store Point of Sale System Using PHP/MySQL and Bootstrap Framework with Source Code


This is a Pharmacy/Medical Store Point of Sale (POS) System. This was developed using PHP and MySQL Database. The system manages the Pharmacy's Sales transaction with their customers and also manages their medicinal products stocks. The system stores the products along with some details such as the supplier and the product categories. The product categories are dynamically stored in the database which means the category options have a front-end managing feature to allow the system admin manage the list of options. The system also counts the product availability in each category and also generates a printable sales report.

This Medical Store POS System was developed using PHP, MySQL Database, HTML, CSS, Javascript, and Bootstrap for the design. Feel Free to download and modify the source code. Continue Reading to know the project features and installation requirements and instructions.


  • Categories Crud
  • Product/Inventories Crud
  • Sales
  • Bill Print
  • Discounts
  • Reports
  • Admin Login & Profile Update
  • Site Setting dynamic Project Name
  • Login & Sessions

How to Run


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start the "Apache" and "MySQL".
  2. Extract the downloaded source code file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming "medical".
  6. Import the provided SQL file. The file is known as “store.sql” extracted along with the source code folder.
  7. Browse the Pharmacy/Medical Store POS System in a browser. i.e. http://localhost/medical/

To configure the database connection, open the "db.php" file inside the "assets" folder.

Admin Access

Username: [email protected]
Password: fkgeo


That's it! I hope that this system can help you with what you are looking for.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byNemwel (not verified)on Sat, 08/22/2020 - 20:39

Good work.
Submitted byIshan Liayange (not verified)on Fri, 06/18/2021 - 22:41

Login Error Warning: session_start(): Cannot start session when headers already sent in C:\xampp\htdocs\medical\login.php on line 55 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\medical\login.php:11) in C:\xampp\htdocs\medical\login.php on line 59 Login query("select * from users where email='$user' AND password='$pass'"); if ($result->num_rows > 0) { session_start(); $data = $result->fetch_assoc(); $_SESSION['userId'] = $data['id']; $_SESSION['bill'] = array(); header('location:index.php'); } else { echo " "; } } ?>
Submitted byAwal Khan (not verified)on Sun, 06/12/2022 - 20:26

Availble stock needs to be increased with new entries and needs to be decreased after the bill issued.

Add new comment