function query ($query) { $this->query = $query; $this->result = mysql_query($this->query) or die($this->error()); ++$this->query_count; return $this->result; }