Skip to main content

Sales and Inventory System in PHP/MySQLi with Source Code


This Sales and Inventory System is a PHP/MySQLi project that can help certain businesses or stores manage their sales and stocks. This system stores the company purchases transaction and serves as the stock-in process of the products and the Sales Transactions will serve as the stock-out process of the system. The system also stores the customer payments and the company payments to the supplier for the purchased stocks, by this feature the company can monitor also the outstanding balance of the customers and also their outstanding balance to their suppliers.

This project was originally written in PHP/MySQL submitted on August 9, 2014, and as of this Year 2020, this project is updated to PHP/MySQLi so it will run to the higher versions of PHP. 


  • Login Page
  • Dashboard Page
  • Customer Management
  • Supplier Management
  • Products Category Management
  • Products Management
  • Sales Management
  • Purchases Management
  • Inventory Availability List
  • Generates Report
  • Store Information

How to Run

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open the web-server database and create a new database name it "posnic".
  4. Import the SQL file located in the database folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. E.g [http://localhost/projectsalepurchase]

Default Admin Access

Username: ahsan
Password: ahsan


Enjoy Coding :)

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 byannefjon Wed, 08/20/2014 - 02:09

hi, I tried your system to install, but i couldn't. i put the system folder to my the localhost and i logged in with username&password. in the install page, what is the DB host name? i put your username for all three. but not connected, please help me. Thank you
Submitted byliyana (not verified)on Thu, 10/13/2016 - 10:12

why i cant proceed after i click install at existing database?
Submitted byAli Iqbal (not verified)on Sun, 01/07/2018 - 17:55

Sir wah ap chah gay ma ali explore logics ma hota tha naeem ka dost. ma bi yahi dhund raha tha bs thnks free ma share krnay ka liay.
Submitted byZOha (not verified)on Thu, 06/28/2018 - 19:47

i am having installation error after doing all required steps selected existing database that you have provided with the source code, but still error plz help meee....... Database Connection is Not valid Please Enter The valid database connection

Add new comment