isError ADODB

From: Date: Tue, 03 Jan 2012 02:29:47 +0000
Subject: isError ADODB
Groups: php.db 
Request: Send a blank email to php-db+get-48136@lists.php.net to get a copy of this message
Hi all, I've been trying to start using ADOdb instead of PEAR and I've ran into a snag.. I cannot figure out the equivalent of "isError" in ADOdb, does anyone know? class DbManager { public $db; //open and close the database connection in the constructor function __construct($connectionString) { $this->db = NewADOConnection($connectionString, USE_PERSISTANT_CONNECTIONS); If(isError($this->db)) <---Line 16 ---->>>>> trigger_error($this->db->getMessage(), E_USER_ERROR); $this->db->setFetchMode(ADODB_FETCH_ASSOC); } <---Here's the Error I get ---> Fatal error: Call to undefined function isError() in /home/david/www/wam/include/database.php on line 16 -- David M.

« previous php.db (#48136) next »