• 懒鸟飞:帝国cms模板专业分享平台,新域名:lanniaofei.com

帝国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;
QQ客服

扫码添加客服QQ

使用QQ扫一扫,或长按识别二维码

QQ二维码

如无法扫码,请手动添加QQ:

长按图片保存或识别二维码