I wasn't worried about short code =0P

I would have done this if I was:

        $Connection = mysql_connect('localhost','******','******')
                or die(mysql_error());

=0P

-----Original Message-----
From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 10:13 AM
To: Brad Pauly; Donald Tyler
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] mysql.sock file location

[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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to