RE: [PHP-DB] About mysql_connect()
| From: | Bastien Koert | Date: | Wed, 06 Feb 2008 14:24:41 +0000 |
| Subject: | RE: [PHP-DB] About mysql_connect() | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44583@lists.php.net to get a copy of this message | ||
i use
if (!($conn=mysql_connect($host, $username, $pwd))) { notify("error connecting to
DB"); die(); }else{ return $conn; }
in a function
bastien
> Date: Wed, 6 Feb 2008 02:07:11 -0800> From: prabath321@yahoo.com> To:
> php-db@lists.php.net> Subject: [PHP-DB] About mysql_connect()> > Hi All> > When I
> stop mysql database whole application will> break in mysql_connect() function even without
> giving> any error message.Is there are any way to put> exception handling with mysql_connect()
> function.> > Cheers> > Prabath> > > > >
> ____________________________________________________________________________________> Looking for
> last minute shopping deals? > Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
> > -- > PHP Database Mailing List (http://www.php.net/)> To unsubscribe, visit:
> http://www.php.net/unsub.php>
_________________________________________________________________