Re: [PHP-DB] MDB2 help needed

[email protected] (Laura Longo)
Newsgroups php.db
Organization SATA-HTS
Message-ID <[email protected]>
Hi Yves,
to understand if an error is occured you can use the static method
Pear::isError($db) where $db is an instance of MDB2 object.
To get the specific error you can use the MDB2 method getMessage()
($db->getMessage()).

Hope this help,

Laura

> Hello,
> 
> What's the equivalent of mysql_error() and mysql_errno() in MDB2?
> 
> When I'm sending an incorrect SQL-statement to the server and it fails, all
> I'm getting is "MDB2 Error: syntax error".
> 
> Thanks in advance,
> 
> Yves Sucaet
> Iowa State University
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.