How could I check if the connection to a database was succesfull or not?
$db=ibase_connect (...); allways return an object, and I dont know how to
see if the connection was succesfully established or not (from code, of
course I can see it on the browser with warning message...)
I want to use header() to redirect to a error page(database down) in case of
connection to database fails.
Using :Apache 2, PHP4, Interbase, W2000 Server.

Thx 4 any help.

Benjamí Tauler
"Everyone should carefully observe which way his heart draws him, and then
choose that way with all his strength."
- Hasidic Saying

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to