connect(); $result = mysqli_query($this->connection,$query) or die(mysqli_error($this->connection)); return $result; } public function connect() { $this->connection = mysqli_connect( $this->hostname, $this->username, $this->password, $this->database, '3307'); } public function close(){ @mysql_free_result($result); mysqli_close($this->connection); } public function update($Query) { $this->connect(); mysqli_query( $this->connection, $Query ) or die(mysqli_error($this->connection) ); return mysqli_insert_id( $this->connection ); $this->close(); } public function rs($result) { return ( mysqli_fetch_array($result) ); } public function rows($result){ return (mysqli_num_rows($result) ); } public function clean($var) { $var = str_replace("'","\'", $var); return (string) $var; } public function data($Query) { $this->connect(); $result = mysqli_query($this->connection, $Query) or die( mysqli_error( $this->connection) ); while( $row = $this->rs( $result ) ) { $rs[] = $row; } $this->close(); if ( isset($rs) == 1 ) { return $rs; } } } ?>
Fatal error: Class 'db' not found in W:\www.trackdays.net\includes\classes\main.class.php on line 15