Antony Dovgal wrote:
mysql_error is not set when mysql_connect fails, because there is no actual mysql resource to get the error message from.

yes, there is no mysql resource at this moment. just don't specify it and mysql_error() will tell something like "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)".

that is true, but in this case, neither $php_errmsg nor mysql_error() return anything. i print them both out when the connect fails and they are both just blank.


-jsd-




-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to