Subject Re: [firebird-php] instead of die("...
Author Lester Caine
Simon Carter wrote:

> Having never used PHP before I was wondering if someone could point
> me to some resources that I can use to trap/display error messages.
>
> Given the following code (running in IIS with FB 1.5.0 and PHP
> 4.3.9):
>
> @ $db = ibase_connect($hote, $user, $pass) or die("connexion
> impossible<BR>Database non available");
>
> if (isset($db)){ %>
>
> what can I use to get the error message for the connection failing?

ibase_errcode
ibase_errmsg

http://uk.php.net/manual/en/ref.ibase.php

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services