isError ADODB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux