RE: [PHP] mysql.sock file location
| From: | Didier McGillis | Date: | Thu, 25 Sep 2003 15:15:12 +0000 |
| Subject: | RE: [PHP] mysql.sock file location | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163919@lists.php.net to get a copy of this message | ||
yes like the user and the password ****** and ****** arent working for me.
;)
From: "Jay Blanchard" <jay.blanchard@niicommunications.com> To: "Brad Pauly" <brad@robinsontech.com>, "Donald Tyler" <dtyler@frazerbilt.com> CC: <php-general@lists.php.net> Subject: RE: [PHP] mysql.sock file location Date: Thu, 25 Sep 2003 10:12:50 -0500 [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_________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail