Click here to Skip to main content
15,890,995 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
code in php for scan the product id barcode and submit deatils in database
Posted
Comments
Marc Gabrie 29-Jan-14 7:02am    
do you mean.... scan a barcode using a physical scanner/reader OR you got the barcode image (digitally) and you need to decode the barcode that might be found in that image?

Sir
I need to scan a barcode using a physical scanner.Which matches the id of the product from database and after matching the id there should be change in database of the product status from pending to deliver.
Could you please help me out.


Thank You
 
Share this answer
 
When the user of your php site scans a barcode using a physical device, then this device will act as any input device like a keyboard i.e. the scanner will decode the barcode and will send the decoded value (simple text in most cases) to the app which has the current focus. If the focus is on an input html tag, then the decoded value will be displayed there. Conclusion, you do not have to do anything regarding barcode scanning process if it's performed by a physical device. You can capture the "onchange" event in javascript to perform an ajax call to some php script for validating the value to your db.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900