function get_info() { $res = $this->db->prepare("SELECT users.*,groups.title AS group_title\n FROM users\n LEFT JOIN groups ON groups.name=users.group\n WHERE users.id=?;"); $res->execute(array($this->arr['id'])); if ($row = $res->fetch()) { $row['reg_date'] = Func::unix2human($row['reg_time'], 'H:i <b>d.m.Y</b>'); foreach ($row as $key => $val) { $this->arr[$key] = $val; } return $row; } else { return false; } }