This commit is contained in:
Igor Barkov [iwork] 2019-01-11 18:09:09 +02:00
parent 189904a127
commit e22476a631

View File

@ -29,7 +29,7 @@ foreach ($res->fetch_assoc() as $value) {
print_r($items);
# $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value}
$result = db::c('SELECT * FROM `shop` WHERE count > 0')->query();
$result = db::c()->query('SELECT * FROM `shop` WHERE count > 0');
while ($row = $result->fetch_assoc()) {
$iteminfo[] = new item($row);
}