知道怎么做了
SQL :
select Picurl,Title,ID from KS_Article where tid in({$CurrClassChildID}) order by id desc
显示:
<table width="850">
<tr>
[loop=6]
<td>
<div align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank"><img src="{$Field(Picurl,Text,0,...,0,)}" width="110" height="140" alt="{$Field(Title,Text,0,...,0,)}"></a><br />
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank">{$Field(Title,Text,0,...,0,)}</a><p>
</div>
</td>
[/loop]
</tr>
<tr>
[loop=6]
<td>
<div align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank"><img src="{$Field(Picurl,Text,0,...,0,)}" width="110" height="140"></a><p align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank">{$Field(Title,Text,0,...,0,)}</a>
</div>
</td>
[/loop]
</tr>
</table>