Re: [PHP-DB] isError ADODB

2012-01-05 Thread Lester Caine
David McGlone wrote: I am not ADO savvy, but the error message you got is the same as what > I get in MySQL. > On this line, try.. > > If($this->isError($this->db)) if( $this->db->isError() ) BUT if( !$this->db ) { not connected } is the more normal first check > Hoping that fixes it for

Re: [PHP-DB] isError ADODB

2012-01-05 Thread David McGlone
On Mon, 2012-01-02 at 20:34 -0600, Karl DeSaulniers wrote: > I am not ADO savvy, but the error message you got is the same as what > I get in MySQL. > On this line, try.. > > If($this->isError($this->db)) > > Hoping that fixes it for you. > Best, Thanks Karl. I finally got to try this and it w

Re: [PHP-DB] isError ADODB

2012-01-02 Thread Karl DeSaulniers
I am not ADO savvy, but the error message you got is the same as what I get in MySQL. On this line, try.. If($this->isError($this->db)) Hoping that fixes it for you. Best, Karl On Jan 2, 2012, at 8:29 PM, David McGlone wrote: If(isError($this->db)) Karl DeSaulniers Design Drumm http://

[PHP-DB] isError ADODB

2012-01-02 Thread David McGlone
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($connectionS