diff --git a/admin/test.php b/admin/test.php deleted file mode 100644 index ed56709..0000000 --- a/admin/test.php +++ /dev/null @@ -1,40 +0,0 @@ -query('select * from `bank` WHERE owner=10929 OR owner=11221')->fetch_assoc_array(); -#print_r($row); -#echo '
'; -#$row2 = db::c()->query('select * from `bank` WHERE owner=10929 OR owner=11221')->fetch_row_array(); -#print_r($row2); -#echo '
'; - -// Получить все... -$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 ItemStats($row); -} - -foreach ($iteminfo as $iinfo) { - $iinfo->printItemStats(); -} diff --git a/test.php b/test.php new file mode 100644 index 0000000..bf25b59 --- /dev/null +++ b/test.php @@ -0,0 +1,25 @@ +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 ItemStats($row); +} + +foreach ($iteminfo as $iinfo) { + $iinfo->printItemStats(); +}