获取文章id后,赋值到SQL中查找,最后显示10条
{dede:list pagesize=’10’}
[field:aid runphp=’yes’]
$sql=”SELECT top 10 * FROM dede_addonarticle where aid < '@me' order by aid desc";
$dsql->Execute(‘me’,$sql);
$result = “”;
while($row= $dsql->GetArray())
{
$result = $result.$row[‘aid’].
;
}
@me = $result ;
[/field:aid]
{/dede:list}