RE: [PHP] mysql.sock file location
| From: | Jay Blanchard | Date: | Thu, 25 Sep 2003 15:12:50 +0000 |
| Subject: | RE: [PHP] mysql.sock file location | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163918@lists.php.net to get a copy of this message | ||
[snip]
> Here's the test script I am using: (Presume that's what you meant by
> "connection string"?
>
> <?PHP
>
> if($Connection = mysql_connect('localhost', '******', '******'))
> print 'Success!';
> else
> print 'Failure';
>
> ?>
[/snip]
Let's get a hair more info, try
if(!($Connection = mysql_connect('localhost', '******',
'******'))){
print(mysql_error() . "\n");
exit();
}
It also has the added benefit of shortening the code