From 59e79ae66accaff09b50c4153e94453716fe1ba9 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Fri, 15 Feb 2019 17:58:03 +0200 Subject: [PATCH] debug --- comission.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comission.php b/comission.php index 1030061..27e2c37 100644 --- a/comission.php +++ b/comission.php @@ -222,7 +222,8 @@ switch ($shopCategoryTypeNumber) { query('SELECT * FROM `inventory` WHERE `dressed` = 0 AND `name` LIKE "?S" AND `setsale` > 0 ORDER BY `setsale` ASC', $_GET['max'] . '%'); + $name = $_GET['max'].'%'; + $data = db::c()->query('SELECT * FROM `inventory` WHERE `dressed` = 0 AND `name` LIKE "?S" AND `setsale` > 0 ORDER BY `setsale` ASC', $name); while ($row = $data->fetch_assoc()) { $row['cost'] = $row['setsale'];