帝國CMS顯示指定時間內更新的信息數量,如1天內列新多少條信息:
用sql調用
12小時:<?=$empire->gettotal("select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-24*3600")?>
6小時:<?=$empire->gettotal("select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-6*3600")?>
新聞熱點
疑難解答
圖片精選