Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2.  
  3. $title = "Acme Repair - Inventory";
  4. $header = "Acme Repair";
  5. include_once 'View/header.html.php';
  6.  
  7. require_once 'Model/DBAdapter.php';
  8. require_once 'Model/DBFunctions.php';
  9.  
  10. $inventory_table = new DBTable(
  11.     $Conn = $dbConnection, $table = 'inventory', $primaryKey = 'type'
  12. );
  13.  
  14. $typeID = $inventory_table->getIDs('type');
  15. $items = array (
  16.     'inventory_ID' => ' ',
  17.     'description' => ' ',
  18.     'in_stock' => ' ',
  19.     'cost' => ' '
  20. );
  21.  
  22. if (isset($_POST['ItemType'])) {
  23.     $items = $inventory_table->selectByPkey($_POST['ItemType']);
  24. }
  25.  
  26. include_once 'View/inventory.html.php';
  27.  
  28. include_once 'View/footer.html.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement