调取当前登录会员今日发帖数

2018-10-15 00:16:38 无崖子(班班号码:40639406 | 分类:模板 | 浏览124次
按照班班网找到代码,自己修改下试图调取当前登录会员今日发帖数,但不成功,不知道问题出在哪里?
<!--{eval $jintian = date("Ymd",time()); $jinritieshu = DB::result(DB::query("SELECT count(*) FROM ".DB::table('forum_thread')." WHERE displayorder > -1 AND FROM_UNIXTIME(dateline, '%Y%m%d') = '$jintian' AND authorid = '$_G['uid']' "));}-->

另调取当前登录会员今日回帖数怎样调取呢?
2018-10-16 10:24:11
提问者采纳
尝试以下代码:
  1. <!--{eval $jintian = date("Ymd",time()); $jinritieshu = DB::result(DB::query("SELECT count(*) FROM ".DB::table('forum_thread')." WHERE displayorder > -1 AND FROM_UNIXTIME(dateline, '%Y%m%d') = '$jintian' AND authorid = '$_G[uid]' "));}-->
复制代码

班班学院院长(班班号码:1000,来自:班班学院