diff --git a/test.php b/test.php index f2f225c..5339f1c 100644 --- a/test.php +++ b/test.php @@ -5,5 +5,7 @@ $items = db::c()->query('SELECT `id`, `name`, `img`, `duration`, `maxdur`, `bron1`, `bron2`, `bron3`, `bron4`, type, prototype, otdel FROM inventory WHERE owner = 10736 AND dressed = 1')->fetch_assoc(); - +while ($items) { + $items['id'] = $items; +} print_r($items); \ No newline at end of file