帝国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内容页模板文章随机调用随机相关信息

下一篇:帝国cms后台出现Fail to connect ftp host!


收藏数量
Copyright © 2002-2019 测速网 https://www.inhv.cn/ 皖ICP备2023010105号 城市 地区 街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!
热门搜索