1 {dede:sql sql= select arc.id,arc.title,arc.mid,m.* from dede_archives arc left join dede_member m on arc.mid = m.mid where arc.arcrank -1 and arc.mid 0 order by arc.id desc limit 0,15 } 2 lia href= [field:id runphp='yes']$url = GetOneArc
- {dede:sql sql="select arc.id,arc.title,arc.mid,m.* from dede_archives arc left join dede_member m on arc.mid = m.mid where arc.arcrank > -1 and arc.mid <> 0 order by arc.id desc limit 0,15"}
-
- <li><a href="[field:id runphp='yes']$url = GetOneArchive(@me);@me = $url['arcurl'];[/field:id]" title="[field:title/]">[field:title/]</a> [会员ID:[field:userid/] 昵称:[field:uname/] QQ:[field:qq/]]</li>
-
- {/dede:sql}
底层模板均使用[field:字段名/]方式来调用,这里的取值范围为主表的id,title,mid字段与会员表的所有字段!
我们来看看具体效果: