jcoutie

barcode.php

May 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <div data-role="page" id="barcode">
  2.     <div data-role="header">
  3.         <h1>XLX Dashboard</h1>
  4.     </div>
  5.    
  6.             <?php
  7.                 include 'includes/menu.php';
  8.                 $barcode = $_POST['barcode'];
  9.                 $barcodesearch = $handler->query("SELECT * FROM customers WHERE barcode='$barcode'");
  10.                 while($row = $barcodesearch->fetch(PDO::FETCH_ASSOC)) {
  11.                     $name = $row['name'];
  12.                     $balance = $row['balance'];
  13.                 }
  14.             ?>
  15.     <div data-role="content">
  16.         <p>Barcode = <?php echo $barcode;?></p>
  17.         <p>Name = <?php echo $name;?></p>
  18.         <p>Balance = $<?php echo $balance;?></p>
  19.     </div>
  20.     <div data-role="footer">
  21.         <h4>XLX Glen Iris</h4>
  22.     </div>
  23. </div>
Add Comment
Please, Sign In to add comment