Home > Backend Development > PHP Tutorial > php基本知识之保险

php基本知识之保险

WBOY
Release: 2016-06-13 10:38:49
Original
835 people have browsed it

php基本知识之安全

1、在进行sql查询之前,所有字符串必须加单引号,以避免注入漏洞和sql错误(鉴于“”和‘’之前的差别,“”中的内容被解释并替换,如$name = "fire" ,"我是$name",输出:我是fire )
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template