$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这个词重写一下就过关了,为神马啊?编码都是统一的