Discuz教程网

It is not safe to do this query

[复制链接]
authicon feelair8250 发表于 2013-3-9 00:21:19 | 显示全部楼层 |阅读模式
这段代码写入有错误
  
  (0) It is not safe to do this query
  
  
2source/class/discuz/discuz_database.php134discuz_database::checkquery(%s)
3source/class/discuz/discuz_database.php171discuz_database_safecheck::checkquery(%s)
4source/class/discuz/discuz_database.php356break()

  $query = DB::query("SELECT * FROM ".DB::table('home_doing')." WHERE doid>=((select max(doid) from ".DB::table('home_doing').")-39) order by doid limit 40");
  
  
  求大牛指点下。。
  
  取后面40行 然后倒序排序



上一篇:为什么论坛上传图片变交叉?求解决方案!!
下一篇:子版块伪静态问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-4 16:10

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表