I am stumped. Below is my code and it doesn't work (I removed the
$login info for posting).
PHP Code:
require 'PEAR/DB.php';
// Connect to the database
$db = DB::connect($lo gin);
if (DB::isError($d b)) { die ("Can't connect: " . $db->getMessage() ); }
// Set up automatic error handling
$db->setErrorHandli ng(PEAR_ERROR_D IE);
// Set up fetch mode: rows as objects
$db->setFetchMode(D B_FETCHMODE_ASS OC);
if (class_exists(' DB')) {
print "ok";
} else {
print "failed";
}
However, this code does:
PHP Code:
require 'PEAR/DB.php';
if (class_exists(' DB')) {
print "ok";
} else {
print "failed";
}
I just switched ISP's and none of the stuff that utilizes PEAR works
on the new ISP. PEAR is installed. The DB module is installed, but I
can't connect to a database. I don't get any errors. I just get a
blank screen.
Any thoughts would be greatly appreciated. Thanks!
$login info for posting).
PHP Code:
require 'PEAR/DB.php';
// Connect to the database
$db = DB::connect($lo gin);
if (DB::isError($d b)) { die ("Can't connect: " . $db->getMessage() ); }
// Set up automatic error handling
$db->setErrorHandli ng(PEAR_ERROR_D IE);
// Set up fetch mode: rows as objects
$db->setFetchMode(D B_FETCHMODE_ASS OC);
if (class_exists(' DB')) {
print "ok";
} else {
print "failed";
}
However, this code does:
PHP Code:
require 'PEAR/DB.php';
if (class_exists(' DB')) {
print "ok";
} else {
print "failed";
}
I just switched ISP's and none of the stuff that utilizes PEAR works
on the new ISP. PEAR is installed. The DB module is installed, but I
can't connect to a database. I don't get any errors. I just get a
blank screen.
Any thoughts would be greatly appreciated. Thanks!
Comment