Опечатка в sql запросе
This commit is contained in:
parent
9019d86514
commit
de2d24c2dd
5
shop.php
5
shop.php
@ -294,8 +294,7 @@ switch ($shopCategoryTypeNumber) {
|
||||
<TD>
|
||||
<TABLE class="zebra" WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
|
||||
<?php
|
||||
$sale = $_REQUEST['sale'];
|
||||
if ($sale) {
|
||||
if(isset($_REQUEST['sale']) && $_REQUEST['sale']!="") {
|
||||
// Выбираем всё потому что эту выборку потом использует showitem();
|
||||
$data = db::c()->query('SELECT * FROM `inventory` WHERE `owner` = ?i AND `dressed` = 0 AND `setsale` = 0 AND `cost` > 0 AND `present` = "?s" AND `tradesale` = 0 AND `podzem` = 0 ORDER BY `update` DESC', $user['id'], null);
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
@ -330,7 +329,7 @@ switch ($shopCategoryTypeNumber) {
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
$data = db::c()->query('SELECT `id`, `img`, `name` FROM `shop` WHERE `count` > 0 AND `razdel` = ?i ORDER by `nlevel` ASC, `id` ASC', $shopItemTypeNumber);
|
||||
$data = db::c()->query('SELECT `id`, `img`, `name` FROM `shop` WHERE `count` > 0 AND `razdel` = ?i ORDER by `nlevel` ASC, `id` ASC', $shopCategoryTypeNumber);
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
?>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user