For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > February 2008 > RE: [PHP-DB] About mysql_connect()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] About mysql_connect()
Bastien Koert

2008-02-06, 7:01 pm


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/newse...tegory=shopping> > -- > PHP Database Mailing List (http://www.php.net/)> Tounsubscribe, visit: http://www.php.net/unsub.php>

________________________________________
_________________________


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com