如何用灵动标签在帝国cms内容页中调用收藏当前信息的会员方法。
使用的是多表关联的查询,样式和代码可自行作调整,使用代码如下:
[e:loop={"select a.*,b.* from [!db.pre!]enewsfava a LEFT JOIN [!db.pre!]enewsmemberadd b ON a.userid=b.userid where classid='$navinfor[classid]' and id='$navinfor[id]'",0,24,0}] <li><a href="[!--news.url--]e/space/?userid=<?=$bqr[userid]?>" target="_blank"><img src="<?=$bqr[userpic]?>"><h5><?=$bqr[username]?></h5></a></li> [/e:loop]
以上代码调用的信息有会员空间地址,会员头像,会员名称。
本文摘自网络,不代表短经典网立场 https://www.duanjingdian.com/584.html