Mysql escape function who gives the younger brother a PHP & nbsp; mysql & nbsp; escape function who gives the younger brother a, the query seems to have to reverse the function, please kindly advise! & Lt; & gt; and other symbols should be transferred to the mysql escape function.
Who will give the PHP mysql escape function to the younger brother? it seems that the function has to be reversed during the query!
<> Symbols like this can be converted to mysql escape and shared to: symbols like this can be converted to 'data-pics = ''>
------ Solution --------------------
Reference:
I don't know. it's just form submission. if I enter MYSQL, I will convert it. if I don't want to convert it, then abc will be miserable?
This is to be switched. Otherwise, an error will occur.
The warehouse receiving function can be transferred. the warehouse receiving function is not required.
Examples
Example 1. mysql_escape_string () example
$ Item = "Zak's Laptop ";
$ Escaped_item = mysql_escape_string ($ item );
Printf ("Escaped string: % s \ n", $ escaped_item );
?>
The above example will output:
Escaped string: Zak \'s Laptop
Notes
Note: mysql_escape_string () does not escape % and _.
See Also
Mysql_real_escape_string ()
Addslashes ()
The magic_quotes_gpc directive.
------ Solution --------------------
Reference:
44 is new. why is it empty?
You can see that the mysql_escape_string function is followed by a string, but you can give it an array .. The form you received is converted one by one before receiving the database!