Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Report_Sales.php
  • Loading branch information
jic13003 committed Dec 6, 2016
1 parent bc56221 commit 38134d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminPages/Report_Sales.php
Expand Up @@ -17,7 +17,7 @@ require("../commonFunctions.php");
if (isset($_GET['Category'])){ //Check if category has already been set
$query = "SELECT * FROM `sales by category` WHERE CategoryID = ?
AND ProductName = ? "; //'?' in place of variable
$ProductName = % . $_GET['ProductName'] . %;
$ProductName = "%" . $_GET['ProductName'] . "%";
$stmt = $con->prepare($query);
$stmt ->bind_param("ds", $_GET['Category'], $ProductName); //Bind category to query, category is taken in as CategoryID, so it's a digit
$stmt ->execute();
Expand Down

0 comments on commit 38134d9

Please sign in to comment.