Web design - Part II: Developing Intranet Solutions Listing 4-1 (Continued)
Part II: Developing Intranet Solutions Listing 4-1 (Continued) $this->error_type = $TABLE_UNKNOWN_ERROR; } } function isError() { return (!empty($this->error)) ? 1 : 0; } function isErrorType($type = null) { return ($this->error_type == $type) ? 1 : 0; } function getError() { return $this->error; } function quote($str) { return . $str . ; } function apiVersion() { return $VERSION; } } ?> Here are the functions the DBI class implements: . DBI(): This is the constructor method, which creates the instances of the DBI object. For example, here is a script called test_dbi.php that creates a DBI object. Note: If you are looking for cheap webhost to host and run your apache application check Vision apache web hosting services