Subject | Re: [firebird-php] How get firebird error code |
---|---|
Author | Lester Caine |
Post date | 2003-10-29T17:37:11Z |
> Does anybody know how can I retrieve the error code returned fromPinched from ADOdb :)
> firebird server?
function _handleerror()
{
$this->_errorMsg = ibase_errmsg();
}
function ErrorNo()
{
if (preg_match('/error code = ([\-0-9]*)/i',
$this->_errorMsg,$arr)) return (integer) $arr[1];
else return 0;
}
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services