欢迎访问 舍力博客(www.shuyong.net)
<?php $db = Database::getInstance(); $slfwlNum = $db->fetch_array($db->query("SELECT sum(views) as views FROM ".DB_PREFIX."blog where type = 'blog' and hide='n' and checked='y'")); echo '总访问量:'.$slfwlNum['views'];?>
<?php $Log_Model = new Log_Model(); $today = strtotime(date('Y-m-d')); $today_sql = "and date>$today"; $today_num = $Log_Model->getLogNum('n',$today_sql); echo '今日发布了'.$today_num.'篇文章!'; ?>本代码只在emlog5.3.1版本中测试,其它未做测试,如有问题, 请本页留言
留言/评论:◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。