id = $rs['id']; $this->username = $rs['username']; $this->email = $rs['email']; $this->permission = $rs['permission']; } else { $rs = mysqli_fetch_array(mysqli_query($conn, "SELECT * FROM `{$db['name']}`.`users` WHERE `id`='{$username}'")); if($rs) { $this->id = $rs['id']; $this->username = $rs['username']; $this->email = $rs['email']; $this->permission = $rs['permission']; } } } } }