竟然遇见这个问题Safe Alert: Request Error step 1 !
0 个评论
今天给客户弄站,需要联合查询两个表
要用到union,我用了SQL标签去查询,结果不能运行
提示Safe Alert: Request Error step 1 !
一看到就知道是安全警告,也就是SQL语句里不能用union
主要是为了防止注入
但是我现在必须使用啊,怎么办呢?
有人提出可以
include下的dedesql.class.php找到如下构造函数
1. function __construct($pconnect=false,$nconnect=true)
2. {
3. $this->isClose = false;
4. $thi...
阅读全文