只需一步,快速开始
$q = DB::query("SELECT todayposts, threads, posts FROM ".DB::table('forum_forum')." WHERE type='forum'"); while($12345la = DB::fetch($q)) { $todayposts += $12345la['todayposts']; $threads += $12345la['threads']; $posts += $12345la['posts']; }
可能有很多童鞋不字段如何用? 把上面那段代码放到相应的程序文件最后?>前面,然后把上面三个变量写到模板里去,更新缓存试试 如果有不懂的地方,请跟帖发问,但是不动手的懒人我表示鄙视!
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2025-5-13 00:10 , Processed in 0.053477 second(s), 16 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.