How to prevent error on connect failure ...
| From: | Andris Jancevskis | Date: | Wed, 20 Sep 2000 06:31:49 +0000 |
| Subject: | How to prevent error on connect failure ... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2983@lists.php.net to get a copy of this message | ||
Hi,
I want to prevent error message on mysql_pconnect()
if connection is not established.
One way is to use "or die", but I need to redirect to error page.
I don't know better way than "or die".
Did You know how redirect or best way to
catch error from displaying in page?
Linux, PHP 4.0, mySQL.
TIA,
Andris