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

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


This Post Has 32 Comments

  1. Antima Reply

    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 manager WHERE username=’$username’ AND password=’$password'”);
    $row=mysql_fetch_array($result);
    if($row>0){
    session_start();
    $_SESSION[‘manager_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’]).”/manager.php”);
    }else{
    $message=”Invalid login Try Again”;
    }
    break;
    }}
    echo <<<LOGIN

    Pharmacy Sys

    #content {
    height: auto;
    }
    #main{
    height: auto;}

    Pharmacy Sys

    Login here
    $message

    –Select position–
    Admin
    Pharmacist
    Cashier
    Manager

    Pharmacy Sys 2013. Copyright All Rights Reserved

    LOGIN;
    ?>

  2. rajeev Reply

    what is the username&password??

  3. chris Reply

    cant find the sales.sql

  4. akhil Reply

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

  5. Ayal.sasith Reply

    Its not Working

  6. Bamidele Odunayo Reply

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

  7. shubham sarkar Reply

    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 Reply

      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 Reply

      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’)

  8. shubham sarkar Reply

    what is the username&password??

  9. shubham sarkar Reply

    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

  10. kid havannah Reply

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

  11. Sanaullah Reply

    Thank you
    Your site is very helpful

  12. sonu Reply

    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”

  13. Dahiru Muhd Reply

    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

  14. Shafikah Reply

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

  15. Shafikah Reply

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

  16. sree Reply

    can u provide report

Leave a Reply

Your email address will not be published. Required fields are marked *