Старт переноса showinf_pers(); в класс
This commit is contained in:
parent
9bc4c79a8d
commit
4a7e359cc3
@ -45,9 +45,9 @@ class User
|
||||
|
||||
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;
|
||||
// }
|
||||
foreach ($dressed_items->fetch_assoc_array() as $item) {
|
||||
print_r($item);
|
||||
}
|
||||
echo <<<USERINFO
|
||||
Имя {$this->login} <br>
|
||||
Сила {$this->strength} <br>
|
||||
@ -59,9 +59,6 @@ class User
|
||||
Находится в {$this->getRoomName($this->room)}<br>
|
||||
Предметы на тушке: <br>
|
||||
USERINFO;
|
||||
while (($items = $dressed_items->fetch_assoc_array()) !== null) {
|
||||
print_r($items);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user