Skip to main content
X-Slider
Known Participant
January 28, 2012
Question

How to Read BarCode by PHP Code and store data in MySQL

  • January 28, 2012
  • 1 reply
  • 9130 views

Hi everybody I need a help , how to read a barcode by php code and store the data into MySQL Database

This topic has been closed for replies.

1 reply

Participating Frequently
January 30, 2012

You can use PHP to directly read a barcode. PHP is a server side scripting language. A barcode scanner is just a client side input device. What you can do is create an HTML form that has a field for the barcode. The scanner can then populate the field with the barcode, which is nothing more than a text string. Then submit the form to PHP or any other scipting language to insert into the database.

X-Slider
X-SliderAuthor
Known Participant
February 8, 2012

is there any sample or online form that apply this idea ?

Participating Frequently
February 9, 2012

Try searching the web - I'm sure there are some examples out there.  You can use any html form. The scanner is just an input device. Instead of typing the value in the form field with the keyboard, you use the scanner to populate the field. Do you understand how html forms work?