POST TIME:2020-03-28 16:58
织梦CMS中企业推荐会员如何调用?其实推荐的只要加多一个 matt='1' ,其代码如下:
{dede:sql sql="SELECT comname,userid FROM dede_member_cominfo AS c LEFT JOIN dede_member AS m ON c.id=m.ID WHERE m.type='1' and matt='1' ORDER BY m.jointime DESC LIMIT 0,12"}
<a href='[field:global name='cfg_cmspath'/]/member/?[field:userid/]/' target=_blank>[field:comname/]</a><br>
{/dede:sql}
红色为增加条件
上一篇:织梦CMS文章防刷新机制的代码
下一篇:修改DEDECMS录入时间