From ade7c21ccd011b641e8393380dffc3fa4b8f9dfa Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 6 Mar 2002 10:39:29 +0000 Subject: [PATCH] - Document the new "new_link" parameter to mysql_connect git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@72091 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mysql.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/functions/mysql.xml b/functions/mysql.xml index 729ef09c52..500b78ac40 100644 --- a/functions/mysql.xml +++ b/functions/mysql.xml @@ -1,5 +1,5 @@ - + MySQL Functions MySQL @@ -293,6 +293,9 @@ mysql_close($link); string password + bool + new_link + Returns a MySQL link identifier on success, or &false; on failure. @@ -327,7 +330,10 @@ mysql_close($link); If a second call is made to mysql_connect with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be - returned. + returned. The new_link modifies this behavior and + makes mysql_connect always open a new link, even if + mysql_connect was called before with the same + parameters. The link to the server will be closed as soon as the execution of