db query error
This commit is contained in:
parent
1063b3fe8b
commit
693d0201f0
@ -267,7 +267,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_assoc();
|
||||
$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