Emlog显示文章总访问量
今日发布的文章数代码:
<li><a><?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'];?></a></li> <li><a><?php recentUpdate();?></a></li>