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

mysql诡异有关问题,求教

WBOY
WBOYOriginal
2016-06-13 13:22:23868browse

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;



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

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