Subject Re: [firebird-php] How get firebird error code
Author Lester Caine
> Does anybody know how can I retrieve the error code returned from
> firebird server?

Pinched from ADOdb :)

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