query('SELECT * FROM users WHERE id = "?s" OR login = "?s"', $user, $user)->fetch_assoc(); foreach ($this as $key => $value) { if (isset($user_query[$key])) { $this->$key = $user_query[$key]; } } } public function showUserInfo() { $dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id); // foreach ($dressed_items->fetch_assoc() as $item) { // echo 1; // } echo <<login}
Сила {$this->strength}
Ловкость {$this->dexterity}
Интуиция {$this->intuition}
Выносливость {$this->endurance}
Интеллект {$this->intelligence}
Мудрость {$this->wisdom}
Находится в {$this->getRoomName($this->room)}
Предметы на тушке:
USERINFO; while (($items = $dressed_items->fetch_assoc()) !== null) { print_r($items); } } }