From 2f2244be324f1a51538eb4c296757063d7a07bd7 Mon Sep 17 00:00:00 2001 From: Mike Robinson Date: Sat, 22 Jan 2000 17:37:19 +0000 Subject: [PATCH] Added note about suppressing mysql_connect error message on failure git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@18782 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mysql.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/functions/mysql.xml b/functions/mysql.xml index 3b502a2a63..14ed6aa18c 100644 --- a/functions/mysql.xml +++ b/functions/mysql.xml @@ -164,8 +164,8 @@ - Returns: A positive MySQL link identifier on success, or false on - error. + Returns: A positive MySQL link identifier on success, or an error + message on failure. mysql_connect establishes a connection to a @@ -185,9 +185,13 @@ Support for the ":/path/to/socket" was added in PHP 3.0.10. + + You can suppress the error message on failure by prepending '@' + to the function name. + - + In case a second call is made to mysql_connect with the same arguments, no new link will be established, but instead, the link identifier of