• 懒鸟飞:帝国cms模板专业分享平台,新域名:lanniaofei.com

帝国cms会员中心调用最新会员列表

帝国cms会员中心首页,调用最新会员列表,代码如下:

<?php
 $usersql=$empire->query("select username,userid from {$dbtbpre}enewsmember order by userid desc limit 10");
  while($userr=$empire->fetch($usersql))
  {
    $fuaddr=$empire->fetch1("select userpic from {$dbtbpre}enewsmemberadd where userid='$userr[userid]'
limit 1"); 
?>
<li>
<a href="/e/space/?userid=<?=$userr[userid]?>"><img src="<?=$fuaddr[userpic]?$fuaddr
[userpic]:'/e/data/images/nouserpic.gif'?>"> <strong><?=$userr[username]?></strong></a></li>
<?php }?>
 
QQ在线咨询
QQ客服
淘宝官网