帝国cms调用文章收藏数量,列表页和内容页调用收藏数量的方法稍微不同
1、内容页调用文章的收藏数
<?
$scs=$empire->gettotal("select count(*) as total from phome_enewsfava where id='$navinfor[id]' and classid='$navinfor[classid]'");
?>
收藏数:<?=$scs?>
2、列表页调用文章的收藏数
$scs=$empire->gettotal("select count(*) as total from phome_enewsfava where id='$r[id]' and classid='$r[classid]'");
$listtemp='收藏数:'.$scs;
下一篇:帝国cms后台出现Fail to connect ftp host!
收藏数量
DedeCMS 核心类TypeLink.class.p
织梦cms系统TAG标签和分页伪静态
织梦cms列表页/内容页调用当前文
dedecms会员中心常用信息输出
dede搜索结果页支持article、sql
织梦cms批量取消审核文档的实现
织梦dedecms wap手机门户站点首
织梦dedecms在模板页面中实现会
织梦导航不显示外部链接栏目,修
织梦dedecms使用Mysql8.0无法登