query('SELECT name,img,type,id FROM inventory WHERE owner = 11263 AND dressed = 1'); //foreach ($res->fetch_assoc() as $value) { // $items[$value[0]] = $value; //} //print_r($items); # $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value} $iteminfo =[]; $result = db::c()->query('SELECT * FROM `shop` WHERE count > 0'); $result2 = db::c()->query('SELECT * FROM `inventory` WHERE owner = 11263'); while ($row = $result->fetch_assoc()) { $iteminfo[] = new ShopItem($row); } while ($row = $result2->fetch_assoc()) { $iteminfo[] = new InventoryItem($row); } echo "
"; $ii->printImage(); $ii->printControls(); echo " | "; echo ""; $ii->printInfo(); echo " |