undefined class name-oracle
Hi, pls help me....
I have create a page to connect the oracle dbase (mod_title.php):
$user = 'prod';
$pass = 'prod';
$host = 'ptmn';
$db_name = 'prod';
// Data Source Name: This is the universal connection string
$dsn = "oci8://$user:$pass@$host";
// DB::connect will return a PEAR DB object on success
// or an PEAR DB Error object on error
$db = DB::connect($dsn);
// With DB::isError you can differentiate between an error or a valid connection
if (DB::isError($db)) {
die ($db->getMessage());
}else {
//echo "Connected!";
}
When I run at browser, it display error:
Fatal error: Undefined class name 'db' in c:\inetpub\wwwroot\inv\mod_title.php on line 24.
I use PHP4 Win2000 Service Pack4 IIS 5.0 Oracle8
Thanks in advance
molly.
|