DB Successfull Connection Checking

From: Date: Thu, 16 May 2002 08:34:31 +0000
Subject: DB Successfull Connection Checking
Groups: php.db 
Request: Send a blank email to php-db+get-19210@lists.php.net to get a copy of this message
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 btauler@menta.net http://www.webpersonal.net/btauler "Everyone should carefully observe which way his heart draws him, and then choose that way with all his strength." - Hasidic Saying

« previous php.db (#19210) next »