注册 | 登录 |
地方论坛门户及新闻和人才网址大全

discuz x3.2查询数据表并单独使用字段调用数据代码

时间:2021-07-21人气:-


$daythreads = DB::query("SELECT todayposts,yesterdayposts,threads,posts FROM ".DB::table('forum_forum')." WHERE type='forum'");while($dayt = DB::fetch($daythreads)) {$todayposts += $dayt['todayposts'];$yesterdayposts += $dayt['yesterdayposts'];$threads += $dayt['threads'];$posts += $dayt['posts'];}

复制代码
{$todayposts}今日发帖数{$yesterdayposts}昨日发帖数{$threads}主题数{$posts}帖子数


上篇:discuz提示信息:抱歉,您指定的用户空间不存在

下篇:discuz 帖子列表页调用封面图片代码