From 51e62fd209dda7a9d63fd81c3df3a12005969704 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Mon, 14 Jan 2019 17:40:01 +0200 Subject: [PATCH] make class greater --- test.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test.php b/test.php index b4d3fec..d96eb9a 100644 --- a/test.php +++ b/test.php @@ -25,7 +25,14 @@ $result = db::c()->query('SELECT `shop`.*, `magic`.`img` AS `magic_img` 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 `inventory`.*, + `magic`.`name` AS `magic_name`, + `magic`.`chanse` AS `magic_chanse`, + `magic`.`time` AS `magic_time`, + `magic`.`file` AS `magic_file`, + `magic`.`targeted` AS `magic_targeted`, + `magic`.`needcharge` AS `magic_needcharge`, + `magic`.`img` AS `magic_img` FROM `inventory` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE owner = 11263'); while ($row = $result->fetch_assoc()) { $iteminfo[] = new ShopItem($row); }