Index: mysql-escape-string.xml =================================================================== RCS file: /repository/phpdoc/en/reference/mysql/functions/mysql-escape-string.xml,v retrieving revision 1.15 diff -u -r1.15 mysql-escape-string.xml --- mysql-escape-string.xml 20 Jun 2007 22:25:00 -0000 1.15 +++ mysql-escape-string.xml 2 Oct 2007 19:01:22 -0000 @@ -14,7 +14,10 @@ This function will escape the unescaped_string, - so that it is safe to place it in a mysql_query. + by inserting a backslash before before characters that have a special + meaning to mysql so that it is safe to place it in a mysql_query. + These characters are single quote ('), double quote ("), backslash (\), newline(\n), + carriage return (\r), substitute (\Z) and NUL (the NULL byte). This function is deprecated. @@ -49,31 +52,6 @@ - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 4.3.0 - - This function became deprecated, do not use this function. Instead, - use mysql_real_escape_string. - - - - - - - - &reftitle.examples; @@ -102,9 +80,13 @@ &reftitle.notes; + The function mysql_escape_stringmysql_real_escape_string instead. + + mysql_escape_string does not escape % and _. +