Which of the following is the mysql escape function?

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.