作者:大帅哥明日夜 | 来源:互联网 | 2018-03-22 18:44
phpcms 查询每日发表内容
db = pc_base::load_model("news_model");
}
function postnum(){
$end = $_GET['end'] ? strtotime($_GET['end']) : time();
$i = 0;
while($i <10){
$daystart = strtotime(" -1 day",$end);
$dayend = $end;
$where = "inputtime > $daystart and inputtime <$dayend ";
$number = $this->db->count($where);
echo date("Y-m-d",$daystart)."发表了".$number."
";
$end = $daystart;
$i++;
}
}
}
以上就是phpcms 查询每日发表内容的内容,更多相关内容请关注PHP中文网(www.php1.cn)!