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

WBOY
Release: 2016-06-23 13:48:03
Original
1180 people have browsed it

<?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());?>
Copy after login



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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template