db query error

This commit is contained in:
Igor Barkov [iwork] 2019-02-15 17:43:21 +02:00
parent 6c206d3b06
commit 1063b3fe8b

View File

@ -222,7 +222,7 @@ switch ($shopCategoryTypeNumber) {
<TABLE BORDER=0 WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
<?php
if (isset($_GET['max'])) {
$data = db::c()->query('SELECT * FROM `inventory` WHERE `dressed` = 0 AND `name` LIKE "?S" AND `setsale` > 0 ORDER BY `setsale` ASC', $_REQUEST['max'] . '%');
$data = db::c()->query('SELECT * FROM `inventory` WHERE `dressed` = 0 AND `name` LIKE "?S" AND `setsale` > 0 ORDER BY `setsale` ASC', $_GET['max'] . '%');
while ($row = $data->fetch_assoc()) {
$row['cost'] = $row['setsale'];