<?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" />
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 控制面板中“我的好友”頭像調(diào)用方法