db, $s); if (mysqli_num_rows($q) > 0){ $r = mysqli_fetch_array($q); $this->id = $r["id"]; $this->name = $r["name"]; $this->name_aw = $r["name_aw"]; $this->element = $r["element"]; $this->stars = $r["stars"]; $this->base = new Monster_Base($this->db, $r["base"]); $this->image = $path["img"]["monster"] . str_pad($id, 4, '0', STR_PAD_LEFT) . ".png"; $this->image_aw = $path["img"]["awaken"] . str_pad($id, 4, '0', STR_PAD_LEFT) . ".png"; } } } ?>