合并前:
$threads = DB::result_first("select count(tid) from ".DB::table("forum_thread").""); $replies = DB::result_first("select sum(replies) from ".DB::table("forum_thread")."");
合并后
$tr = DB::fetch_first("SELECT count(tid) as tid , sum(replies) as replies FROM ".DB::table("forum_thread")." LIMIT 1");
输出变量
$tr[tid] $tr[replies]
还没有评论,来说两句吧...