This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9868|Reply: 0

mysql_escape_string(): This function is deprecated; use mysql_real_escape_str...

[Copy link]
Posted on 12/16/2016 12:56:10 PM | | |
PHP message: PHP Deprecated:  mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in XX



mysql_escape_string

(PHP 4 >= 4.0.3, PHP 5)

mysql_escape_string -- Escape a string for mysql_query
illustrate

string mysql_escape_string ( string unescaped_string )


This function escapes unescaped_string so that it is safe to use in mysql_query().

Note: mysql_escape_string() does not escape % and _.


This function is exactly the same as mysql_real_escape_string(), except that mysql_real_escape_string() accepts a concatenation handle and transfers the string based on the current character set. mysql_escape_string() does not accept connection parameters, nor does it care about the current character set setting.



mysql_escape_string
(PHP 4 >= 4.0.3, PHP 5, Note:This method has been deprecated in PHP5.3 and is not recommended)
mysql_escape_string -- Escape a string for mysql_query





Previous:c# XML serialization deserialization
Next:Windows (64-bit) download using the curl command with the tool
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com