Home > Backend Development > PHP Tutorial > php编程小问题

php编程小问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:20:55
Original
903 people have browsed it


这么写的意义何在?引号怎么解析的。


回复讨论(解决方案)

两单引号之间包了一个双引号,如果$id= 23;则echo  $id结果为 "23"
在MYSQL中,如果id字段为字符串,则$id需要引号包住



两单引号之间包了一个双引号,如果$id= 23;则echo  $id结果为 "23"
在MYSQL中,如果id字段为字符串,则$id需要引号包住


id传的整型。echo我懂,把$id=‘ ” ’ .$id ' " '放到sql语句中查询中的单双引号是怎么回事

额,表情发错了

问题搞定了,其实是问注入的

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