Re: Question about MySQL connection failures

From: Date: Wed, 09 Apr 2003 13:42:20 +0000
Subject: Re: Question about MySQL connection failures
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-19373@lists.php.net to get a copy of this message
Nevermind. I found the 'mysql_error()' call. I just hate when you find the answer AFTER you sent the email. Thanks anyway. --- Paul Menard <paulmenard1@yahoo.com> wrote: > Greeting all, > > On occasion my PHP script/Web page reports that the > attemped connection to the database failed. Here is > the exact code from the top of my script. > > $mysql_conn = mysql_connect($dbhost, $dbuser, > $dbpass) > or die("MySQL Connection failed!!!"); > > My question is in regards to the die(). > > Is there a better way to determine what the MySQL > error was or why the connection failed? > > Paul > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, > and more > http://tax.yahoo.com > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com

« previous php.windows (#19373) next »