diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..14bc68c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nbproject/private/ \ No newline at end of file diff --git a/adminPages/Report_Sales.php b/adminPages/Report_Sales.php index 2805faa..0049637 100644 --- a/adminPages/Report_Sales.php +++ b/adminPages/Report_Sales.php @@ -15,14 +15,69 @@ require("../commonFunctions.php");
prepare($query); - $stmt ->bind_param("dssd", $_GET['Category'], $ProductName, $SupplierName, $_GET['InStock']); //Bind category to query, category is taken in as CategoryID, so it's a digit + $stmt ->bind_param("dssddsssssssss", $_GET['Category'], $SupplierName, $ProductName, $InStockStart, + $InStockEnd, $DurFrom, $DurTo, $CustomerName, $CustomerAddress, $CustomerRegion, + $CustomerCountry, $SupplierAddress, $SupplierRegion, $SupplierCountry + ); //Bind category to query, category is taken in as CategoryID, so it's a digit $stmt ->execute(); $searchResult = $stmt->get_result(); //Get results @@ -50,10 +105,31 @@ require("../commonFunctions.php"); - + - - + + + + + + + + + + + + + + + + + + + + + + +