db, $s); $set = false; if (mysqli_num_rows($q) > 0){ $r = mysqli_fetch_array($q); $this->id = $r["id"]; $this->stars = $r["stars"]; $this->level = $r["level"]; $this->awaken = $r["awaken"]; $this->monster = new Monster($this->db, $r["monster"]); } } } ?>