magic implement
This commit is contained in:
parent
55041adb6f
commit
a7a6e62f04
2
test.php
2
test.php
@ -15,7 +15,7 @@ require_once 'config.php';
|
|||||||
# $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value}
|
# $items = []; foreach(фетч того ебучего массива as $value) {$items[$value['id']] = $value}
|
||||||
|
|
||||||
$iteminfo =[];
|
$iteminfo =[];
|
||||||
$result = db::c()->query('SELECT * FROM `shop` WHERE count > 0 LIMIT 25');
|
$result = db::c()->query('SELECT * FROM `shop` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE count > 0 LIMIT 25');
|
||||||
$result2 = db::c()->query('SELECT * FROM `inventory` WHERE owner = 11263');
|
$result2 = db::c()->query('SELECT * FROM `inventory` WHERE owner = 11263');
|
||||||
while ($row = $result->fetch_assoc()) {
|
while ($row = $result->fetch_assoc()) {
|
||||||
$iteminfo[] = new ShopItem($row);
|
$iteminfo[] = new ShopItem($row);
|
||||||
|
Loading…
Reference in New Issue
Block a user