I am using PEAR's MDB2 to connect to my MySQL DB's.
I have never had a problem before but this particular host is causing me problems.
At first I thought it was the user credentials but I have tested on the same file with a standard
Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /home/topazmar/public_html/db/db.php on line 15
'phptype' => 'mysql',
'username' => DATABASE_USR,
'password' => DATABASE_PWD,
'hostspec' => DATABASE_HOST,
'database' => DATABASE_NAME,
$this->conn->setFetchMode(MDB2_FETCHMODE_ASSOC); //Line 15
 => Array
[file] => /home/topazmar/public_html/db/MDB2.php
[line] => 979
[function] => PEAR_Error
[class] => PEAR_Error
[type] => ->
[args] => Array
 => MDB2 Error: not found
 => -4
 => 1
 => 1024
 => unable to find package 'MDB2_Driver_mysql' file 'MDB2/Driver/mysql.php'
Your connection is failing and you get back error object (class
MDB2_Error) instead of connection object (class extending
PEAR::isError($this->conn) to check if the connection succceeded.
[Edit - Hutber]
This Means You Haven't connected to the db, pw problems, user not privaliaged etc