query error
This commit is contained in:
parent
cb757f6aeb
commit
db773ec159
@ -280,7 +280,7 @@ switch ($shopCategoryTypeNumber) {
|
||||
$replacements = ['+1','+2','+3','+4','+5',' (мф)'];
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
$item_name = str_replace($replacements, '', $row['name']);
|
||||
$item = db::c()->query('SELECT COUNT(`id`), MIN(`duration`), MIN(`maxdur`), MAX(`duration`), MAX(`maxdur`), MIN(`setsale`), MAX(`setsale`) FROM `inventory` WHERE `dressed` = 0 AND `setsale` > 0 AND `present` = "?s" AND `name` LIKE "?S"', '', $item_name.'%')->fetch_row();
|
||||
$item = db::c()->query('SELECT COUNT(`id`), MIN(`duration`), MIN(`maxdur`), MAX(`duration`), MAX(`maxdur`), MIN(`setsale`), MAX(`setsale`) FROM `inventory` WHERE `dressed` = 0 AND `setsale` > 0 AND `present` = "?s" AND `name` LIKE "?S"', '', $item_name)->fetch_row();
|
||||
?>
|
||||
<TR>
|
||||
<TD align=center>
|
||||
|
Loading…
Reference in New Issue
Block a user