db, $s); if (mysqli_num_rows($q) > 0){ $r = mysqli_fetch_array($q); $this->id = $r["id"]; $this->idx = $r["idx"]; $this->visible = $r["visible"]; $this->title = text($this, $r["title"]); $this->icon = $r["icon"]; $this->url = $r["url"]; } } } ?>