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: