我們談談DEDECMS企業(yè)會員的推薦調用方法!
{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}
紅色為增加推薦條件!
希望大家分享自己DEDECMS建站經(jīng)驗,共同進步!做好站!