From 9ae0112ceb759184e4b142399d7dee4433bde9e5 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 22 Jun 2018 22:34:55 +0300 Subject: [PATCH] Fix errors --- ashop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ashop.php b/ashop.php index d5ddd4d..058010b 100644 --- a/ashop.php +++ b/ashop.php @@ -294,7 +294,7 @@ if (isset($_GET['set']) OR isset($_POST['set'])){ query('SELECT `id`,`img`,`name` FROM `ashop` WHERE `count` > 0 AND `razdel` = ?i AND `ecost` > 0 ORDER by `ecost` ASC', $_GET['otdel']); + $data = db::c()->query('SELECT `id`,`img`,`name` FROM `ashop` WHERE `count` > 0 AND `razdel` = "?s" AND `ecost` > 0 ORDER by `ecost` ASC', $_GET['otdel']); while ($row = $data->fetch_assoc()) { if ($i == 0) { $i = 1;