1.
<?php
$usersql=sys_ListMemberInfo(3,0,'2','','');
while($userr=$empire->fetch($usersql))
{
?>
<dl>
<dt class="author">
<p class="pl">
<a href=""><img src="<?=$userr[userpic]?$userr[userpic]:'/e/data/images/nouserpic.gif'?>" alt=""></a>
<span>
<?=$userr[username]?></span>
<em>地区</em>
</p>
<p class="pr"><a href="">+ 关注</a></p>
</dt>
[e:loop={'article',3,18,0,'isgood=1 and userid = 3','newstime DESC'}]
<dd><a href="<?=$bqsr['titleurl']?>" target="_blank">
<?=$bqr['title']?></a> </dd>
[/e:loop]
<?php
}
?>
</dl>
目前这个写法好像行得通,但是userid = 3' 这个3 不知道怎么换成<?=$userr[userid]?> 直接把<?=$userr[userid]?> 写进去报错。。 抱歉我不会写代码,这也是网上看来的。。