How to get the string data to be preprocessed before it is safe
Get to a string of characters and then want to put in the SQL where ' project ' =$_get[' xxxxx ' statement, and then find the information in MySQL
How to handle it safely
I want this string to get to only the numbers and the English letters left.
------Solution--------------------
Then you'll have to dispose of characters that are not letters and numbers.
------Solution--------------------
Http://www.w3school.com.cn/php/func_mysql_real_escape_string.asp
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.