diff --git a/adminPages/Report_Sales.php b/adminPages/Report_Sales.php index 25cb6cf..0c208d0 100644 --- a/adminPages/Report_Sales.php +++ b/adminPages/Report_Sales.php @@ -15,9 +15,11 @@ require("../commonFunctions.php");
prepare($query); - $stmt ->bind_param("d", $_GET['Category']); //Bind category to query, category is taken in as CategoryID, so it's a digit + $stmt ->bind_param("ds", $_GET['Category'], $ProductName); //Bind category to query, category is taken in as CategoryID, so it's a digit $stmt ->execute(); $searchResult = $stmt->get_result(); //Get results