2024年05月24日 建站教程
zblog建站如何显示当天内发布文章数量,下面web建站小编给大家简单介绍一下具体实现代码!
function currentDay_postNum(){
global $zbp;
$gettime = strtotime(date("Y-m-d"));//当天时间
$db = $zbp->db->sql->get();
$sql = $db->select('zbp_post')->where(array(array('=','log_Status','0'),array('>','log_PostTime',$gettime)))->sql;
$array = $zbp->GetListType('Post', $sql);
echo count($array);
}
调用代码:
最近更新文章数量:{currentDay_postNum()}
本文链接:http://so.lmcjl.com/news/5235/