帝国cms调用文章收藏数量

帝国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调用会员列表调用函数sys_ListMemberInfo()