Bootstrap Barcode Scanner Generator
Submitted by rinvizle on Saturday, July 2, 2016 - 12:53.
In this tutorial, i will show you the Barcode Scanner Generator using bootstrap design. The PHP Barcode Scanner Generator is a server-side script that adds barcode generation and scanning the item inside the database and capability to any PHP-compatible website.
Only commonly used parameters are included in the script generator files, ensuring quick and efficient PHP barcode scanning generation.
Hope you like it. Enjoy Coding!
Sample Code
Script for checking the generated barcode.- <?php
- include_once('dbconnect.php');
- {
- $barcode_check = $con->query("select * from barcode where barcode='$barcode'");
- if($barcode_check->rowCount() > 0)
- {
- while($row = $barcode_check->fetch(PDO::FETCH_OBJ))
- {
- $status = $row->status;
- }
- }
- if($barcode_check->rowCount() > 0 && $status == 'Valid')
- {
- if($sell > 0)
- {
- echo "<script> alert('Successfully sold');</script>";
- }
- }else if($barcode_check->rowCount() > 0 && $status == 'Invalid'){
- echo "<script> alert('Item Not Sold');</script>";
- }else{
- echo "<script> alert('Item Not Present....');</script>";
- }
- }else{
- echo "<script> alert('Please Input or Scan Barcode.....');</script>";
- }
- ?>
Add new comment
- 991 views