其实就是用SQL语句的count来统计数据表里面的信息数,具体代码如下:(直接模板里用PHP输出即可) 会员数量: 留言数量: 评论数量: .diggit { display: block; width: 160px; margin: 20px auto; background: #ff5501; color: #fff; box-shadow: 1px 2px 6px 0px rgba(0,0,...
其实就是用SQL语句的count来统计数据表里面的信息数,具体代码如下:(直接模板里用PHP输出即可)
会员数量:=$empire->gettotal(select count(*) as total from phome_enewsmember);?>
留言数量:=$empire->gettotal(select count(*) as total from phome_enewsgbook);?>
评论数量:=$empire->gettotal(select count(*) as total from phome_enewspl_1);?>