Home  >  Article  >  Backend Development  >  discuz! 计划任务执行后一片空白

discuz! 计划任务执行后一片空白

WBOY
WBOYOriginal
2016-06-23 13:48:031144browse

<?phpif(!defined('IN_DISCUZ')) {	exit('Access Denied');}UPDATE pre_common_member SET groupid=58 WHERE uid in(select uid from my_member where dqdate<now());?>



my_member 是我自已创建的表

为什么后台执行计划任务时,总是一片空白,而且也没成功


回复讨论(解决方案)

DB::query("UPDATE pre_common_member SET groupid=58 WHERE uid in(select uid from my_member where dqdate
试试

DB::query("UPDATE pre_common_member SET groupid=58 WHERE uid in(select uid from my_member where dqdate
试试




Discuz! Database Error

(0) It is not safe to do this query

出现这个错误了

(select是认为不安全的,所以,你还是先把它查出来在去执行外面的update

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