fetch($f" />
东方星雨

简单网络

一个爱好网络的80后男站长。

关注我东方星雨个人微信号:476847113

您现在的位置是:首页 > 站长日志

控制面板中“我的好友”头像调用方法

2010-08-12 站长 站长日志

 <?php
$fsql=$empire->query("select fid,fname,fsay from {$dbtbpre}enewshy where userid='$user[userid]' order by fid desc limit 6");
while($fr=$empire->fetch($fsql))
{
$fur=$empire->fetch1("select userid from {$user_tablename} where {$user_username}='$fr[fname]' limit 1");
$fuaddr=$empire->fetch1("select userpic from {$dbtbpre}enewsmemberadd where userid='$fur[userid]' limit 1");
?>
<li>
<div class="user48"><a href="<?="$public_r[newsurl]"?>e/space/?userid=<?=$fur[userid]?>" target="_blank"><img src="<?=$uaddr[userpic]?$uaddr[userpic]:'../../data/images/nouserpic.gif'?>" width="48" height="48" /></a></div>
<p><a href="<?="$public_r[newsurl]"?>e/space/?userid=<?=$fur[userid]?>" target="_blank" title="<?=$fr[fname]?>"><?=$fr[fname]?></a></p>
</li>
<?
}
?>

把<img src="<?=$uaddr[userpic]?$uaddr[userpic]:'../../data/images/nouserpic.gif'?>" width="48" height="48" />改为
<img src="<?=$fuaddr[userpic]?$fuaddr[userpic]:'../../data/images/nouserpic.gif'?>" width="48" height="48" />

文章评论