代码如下:
最新会员SQL:
select a.userid,a.username,b.userpic as titlepic from phome_enewsmember as a LEFT JOIN phome_enewsmemberadd as b ON a.userid=b.userid order by a.userid desc limit 10
按积分排行SQL:
select a.userid,a.username,b.userpic as titlepic from phome_enewsmember as a LEFT JOIN phome_enewsmemberadd as b ON a.userid=b.userid order by a.userfen desc limit 10
标签模板中用[!--userpic--]表示头像,[!--userid--]表示用户id,[!--username--]表示用户名
sql查询调用看这个说明:http://www.phome.net/doc/ecmsedu/base/mbzz/html/other.html#q1
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 帝国CMS首页调用最新会员,活跃会员,积分排行