Home > Backend Development > PHP Tutorial > mysql诡异有关问题,求教

mysql诡异有关问题,求教

WBOY
Release: 2016-06-13 10:31:51
Original
846 people have browsed it

mysql诡异问题,求教

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$sql="select * from {$BIAOTOU}lottery_result where to_days(now())=to_days(lotterydate) and username='{$_SESSION["duoduouser"]}' and lotteryid={$lotteryid}";    echo $sql;    exit;
Copy after login


输出
?select * from duoduo_lottery_result where to_days(now())=to_days(lotterydate) and username='wzxinchen' and lotteryid=23
大家试试把这句拿到命令行分析一下,看看语法过不过关
我这里连语法都不过关
把select这个词重写一下就过关了,为神马啊?编码都是统一的

------解决方案--------------------
改个select 就过关了,那也只有你才能知道了...哈哈哈
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