24小時內發布的正常狀態的帖子量 //24小時內主題數量 $day_beforet = $_G[timestamp]-86400; $oneday_threads = DB::result_first("select count(tid) from ".DB::table("forum_post")." where `first`=1 and `invisible`=0 and `dateline`>'$day_beforet' and `dateline`<'$_G[timestamp]'"); 復制代碼 $_G[timestamp],當前時間戳。 $_G[timestamp]-86400,24小時前的時間戳。