DedeCMS
获取文章id
赋值SQL
显示10条
获取文章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}
评论列表(0条)