note 13082 deleted from function.mysql-connect by betz
| From: | betz@php.net | Date: | Sat, 10 Aug 2002 16:22:52 +0000 |
| Subject: | note 13082 deleted from function.mysql-connect by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34730@lists.php.net to get a copy of this message | ||
If the initial connection with mysql_connect() can't be established, mysql_error() won't
give you a clue, since it requires a linkid that should have been returned from mysql_connect(),
which you just don't have in case of an error. Use php_errormsg() for this:
$linkid = @mysql_connect($host, $user, $password)
or die($php_errormsg);