conn = mysql_connect( HOST, USER, PASS ) or die( mysql_error() ); $this->selec = mysql_select_db( DATABASE, $this->conn ) or die( mysql_error() ); } public function build( $query ) { $this->query = $query; } public function execute() { $this->query = mysql_query( $this->query ) or die( mysql_error() ); } public function numrows() { return mysql_num_rows( $this->query ); } public function fetchassoc() { return mysql_fetch_assoc( $this->query ); } } ?>