Jump to content

Barcodes in PHP and MySQL


gucci`

Recommended Posts

Hello all, I am doing a new site and am wondering if one can scan barcodes locally and have the information captured for entry into remote mysql DB.

 

The site is in PHP and the DB is MySQL. I have a products section in DB and I want to be able to scan the barcode of a product and have the in stock field in products table for that product increased or decreased by the appropriate number.

 

Is there an app that can do this? Should I be looking at a local or remote app? Maybe this has to be a non PHP app.

 

Thanks for the help.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/38533-barcodes-in-php-and-mysql/
Share on other sites

Well, first of all you would need a barcode scanner that will interface with your PC. They came with different capabilities. But, the simplest solution would be to have a page where the cursor is automatically focused on a barcode input box and just use the scanner to populate that field. I can't think of any way to have the client side page interact directly with the barcode scanner in such a way to make it automatically know when you are using the scanner. Well, you cuold probably do it by creating an ActiveX component or something and requiring the user to download and install it. But, that's outside my knowledge.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.