driver = new $driver($hostname, $username, $password, $database, $prefix); $this->database = $database; } public function select_db($db) { $this->driver->select_db($db); } public function query($sql, $arr = array()) { return $this->driver->query($sql, $arr); } public function countAffected() { return $this->driver->countAffected(); } public function getLastId() { return $this->driver->getLastId(); } } ?>