该问题已被锁定!
1
关注
2319
浏览

$this->update('posts_index' 这一句应该怎么写

AI智能回复搜索中,请稍后...

查看全部 1 个回答

kenw2004 高级会员 用户来自于: 四川省成都市
2016-02-14 01:52
这一句不能加 and  要用AND post_type = 'question' 用另一条sql方法:shutdown_query   $this->shutdown_query("UPDATE " . $this->get_table('posts_index') . " SET update_time = ".time()." WHERE post_id =  intval($post_id)  AND post_type = 'question'");

关于作者

问题动态

发布时间
2016-02-13 23:13
更新时间
2016-02-14 01:52
关注人数
1 人关注