From dc6fde31966914a9102fc00e7463140c39743915 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 30 Mar 2005 02:07:56 +0000 Subject: [PATCH] A MySQL connection is required before using mysql_real_escape_string(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183132 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mysql/functions/mysql-real-escape-string.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/reference/mysql/functions/mysql-real-escape-string.xml b/reference/mysql/functions/mysql-real-escape-string.xml index 4348c0a648..4db3623b71 100644 --- a/reference/mysql/functions/mysql-real-escape-string.xml +++ b/reference/mysql/functions/mysql-real-escape-string.xml @@ -1,5 +1,5 @@ - + @@ -35,6 +35,15 @@ mysql_query. If binary data is to be inserted, this function must be used. + + + A MySQL connection is required before using + mysql_real_escape_string otherwise an error of + level E_WARNING is generated, and &false; is + returned. If link_identifier isn't defined, the + last MySQL connection is used. + + mysql_real_escape_string calls MySQL's library function mysql_escape_string, which prepends backslashes to the following characters: