当前位置:首页 > 未命名

zblog如何获取某年某月的文章数

8976988821个月前 (01-10)未命名4

zblog如何获取某年某月的文章数

$a=strtotime($date->year . '-' . $date->mon);            $fdate='';$fdate = $a;            $ldate = (strtotime(date('Y-m-t', $a)) + 60 * 60 * 24);            $sql = $zbp->db->sql->Count($zbp->table['Post'], array(array('COUNT', '*', 'num')), array(array('=', 'log_Type', '0'), array('=', 'log_Status', '0'), array('BETWEEN', 'log_PostTime', $fdate, $ldate)));            $n = GetValueInArrayByCurrent($zbp->db->Query($sql), 'num');echo $n;


扫描二维码推送至手机访问。

版权声明:本文由米表程序发布,如需转载请注明出处。

本文链接:https://www.9909999.xyz/post/357.html

分享给朋友: