Advertisement
jcoutie

landingpage.php

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