isError ADODB
David McGlone <[email protected]>
| Newsgroups | gmane.comp.php.database |
|---|---|
| Message-ID | <1325557787.16478.5.camel@buddy> |
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.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php