PHP 忒聊 綴豖 ヶ輛 mysql_real_escape_string (PHP 4 = 4.3.0) Description 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(). 蛁: mysql_real_escape_string() does not escape% and _. 瞰赽 1. mysql_real_escape_string() example ?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $item = "Zak's and Derick's Laptop"; $escaped_item = mysql_real_escape_string($item); printf ("Escaped string: %s\n", $escaped_item);? The above example would produce the following output: Escaped string: Zak\'s and Derick\'s Laptop See also: mysql_escape_string(), mysql_character_set_name(). 綴豖 れ萸 ヶ輛 mysql_query 奻珨撰 mysql_result