db, $s); if (mysqli_num_rows($q) > 0){ $r = mysqli_fetch_array($q); $this->id = $r["id"]; $this->project = $r["project"]; $this->version = $r["version"]; $this->text = $r["text"]; $this->dtime = $r["dtime"]; $this->user = $r["user"]; $this->username = $r["username"]; $this->lang = $r["lang"]; $this->approved = $r["approved"]; } } } ?>