battles/test.php
2019-01-11 21:16:39 +02:00

32 lines
915 B
PHP

<?php
require_once 'config.php';
//include '../functions.php';
//showinf_pers(10736,1);
//showinf_pers(10736);
//// Получить все...
//$items = [];
//$res = db::c()->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}
$result = db::c()->query('SELECT * FROM `shop` WHERE count > 0');
while ($row = $result->fetch_assoc()) {
$iteminfo[] = new ItemClass($row);
}
echo "<table width='100%'><th colspan='2'>Товары магазина</th>";
foreach ($iteminfo as $ii) {
echo "<tr><td bgcolor='#d3d3d3'>";
$ii->printImage();
echo "</td>";
echo "<td bgcolor='#d3d3d3'>";
$ii->printStats();
echo "</td></tr>";
}
echo "</table>";