Skip to main content

Simple Barcode Integration System Using PHP and MySQL


Users can input item using barcode or using manual input..The goal of this simple system is to calculate item prices using barcode display the price and item code width the use of barcode scanner..
You can also improve this system..
to run the system..just copy the folder named db1 to C:\wamp\bin\mysql\mysql5.1.30\data.
paste the db1 folder inside the data folder

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 byAnonymous (not verified)on Mon, 01/28/2013 - 20:14

Very thank you so much dear.very usefully script........again thanx.

Submitted byAnonymous (not verified)on Thu, 05/09/2013 - 14:08

Hi i had a doubt in barcode scanner pls can u help me out to sove this.Its a bit urgent one

It might be late now to reply to your question, but someone elso may need this barcode scanner integration tutorial in php too.
It is a guide for USB barcode scanner and scanning wand. And it teaches how to integrate hand held barcode scanners with other applications as automation, input and verification devices.
You may take a look. Hope this still helps.

Submitted byAnonymous (not verified)on Sun, 06/23/2013 - 15:15

I am using MAMP and not able to find the location. Could you refine this tutorial by adding an SQL file instead pasting db file into mysql/data folder ?

Submitted byAnonymous (not verified)on Fri, 06/28/2013 - 09:20

In reply to by Anonymous (not verified)

Import the database to phpmyadmin using these procedures:
1. create database on phpmyadmin,use the database name of the file.
2. Import the file to phymyadmin.

I can insert and search the product information when input by a user.
But how the Barcode will search the id of a product since in search.php the barcode file is not being included also in any of the file the barcode file is included so how it will search with a barcode machine.
kindly help

Thank You

Submitted byYawa (not verified)on Mon, 05/19/2014 - 22:05


I have bluetooth scanner which works fine when I use USB but nothing happens when I switch to bluetooth mode. Any ideas ?


Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.