(PHP 4 CVS only)mysql_real_escape_string -- Escapes special characters in a string for use in a SQL statement, taking into account the current charset of the connection.
This function will escape special characters in the unescaped_string, taking into account the current charset of the connection so that it is safe to place it in a mysql_query().
Megjegyzés: mysql_real_escape_string() does not escape % and _.
Példa 1. mysql_real_escape_string() example
The above example would produce the following output: