将下列代码放置在你需要显示的地方即可
代码如下:
<?php
$Log_Model = new Log_Model();
$today = strtotime(gmdate('Y-m-d'));
$today_sql = "and date>{$today}";
$today_num = $Log_Model->getLogNum('n', $today_sql);
echo '今日发布了' . $today_num . '篇文章!';
THE END
暂无评论内容