<?php $rs=$this->db->fetchRow($this->db->select(array('COUNT(cid)' => 'total'))->from('table.contents')
->where('table.contents.status = ?', 'publish')
->where('table.contents.type = ?', 'post'));
$total=$rs['total'];?>
<?php echo $total;?>
wwwdsd:文章总数
版主: seita
wwwdsd:文章总数
Re: wwwdsd:文章总数
欢迎继续挖掘更多的化复杂为简
Re: wwwdsd:文章总数
还没注意有'Widget_Stat'这个东东,牛啊
各种统计都有
各种统计都有