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

admin 2024年1月19日14:04:29帝国cms技巧评论1,911 次浏览阅读模式

内容摘要

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

文章正文

帝国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]'");?>

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日14:04:29
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17499.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: