Re: getting database connection to fail gracefully

From: Date: Wed, 22 Jan 2003 12:42:14 +0000
Subject: Re: getting database connection to fail gracefully
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132579@lists.php.net to get a copy of this message
Andy Clarke wrote:
Is there a way to get a database query to fail gracefully, so that rather than calling Die(), it can work around the problem? In other words, to do something like:
Another option is to make use of PEAR's DB support in your code, rather than using the mysql_ functions directly. This will provide a much better framework for database connectivity/use in general. http://pear.php.net - check out the manual. neko

« previous php.general (#132579) next »