帝国cms列表页及内容页调用显示收藏数量

发布时间:2022-01-04作者:帝国建站网
帝国CMS列表页及内容页,是没有收藏数量调用标签的,但万能的帝国CMS,使用PHP代码就能调用出来。

列表页:

$scs=$empire->gettotal("select count(*) as total from phome_enewsfava where id='$r[id]' and classid='$r[classid]'");
$listtemp='收藏数:'.$scs;

内容页:

gettotal("select count(*) as total from phome_enewsfava where id='$navinfor[id]' and classid='$navinfor[classid]'");?>

上一篇:如何修改后台密码错误超过5次被限制60分钟登录

下一篇:帝国cms标题设置了加粗、颜色等属性如何在内容页显示