diff --git a/adminPages/Report_Inventory.php b/adminPages/Report_Inventory.php index 89eabdb..657ed7a 100644 --- a/adminPages/Report_Inventory.php +++ b/adminPages/Report_Inventory.php @@ -13,10 +13,80 @@ require("../commonFunctions.php");
- //To do + prepare($query); + $stmt ->bind_param("dssdd", $_GET['Category'], $SupplierName, $ProductName, $InStockStart, + $InStockEnd); //Bind category to query, category is taken in as CategoryID, so it's a digit + $stmt ->execute(); + + $searchResult = $stmt->get_result(); //Get results + + makeTable($searchResult); //Make table from results, makeTable code is in commonFunctions.php + + }else{ //If category has not been set, show HTML form to pick category + ?> + +
+

Inventory Report

+
+ + + + + + + + + + + + + +
+
+ +
+ diff --git a/adminPages/Report_Sales.php b/adminPages/Report_Sales.php index 0049637..1098d07 100644 --- a/adminPages/Report_Sales.php +++ b/adminPages/Report_Sales.php @@ -15,7 +15,7 @@ require("../commonFunctions.php");