$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}今日發(fā)帖數(shù) {$yesterdayposts}昨日發(fā)帖數(shù) {$threads}主題數(shù) {$posts}帖子數(shù) |
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: discuz x3.2查詢數(shù)據(jù)表并單獨(dú)使用字段調(diào)用數(shù)據(jù)代碼