select id,title,score from ks_photo where tid='20084475149672' order by id desc
以上是查询语句,
以下是循环体,好像写错了,图片不显示,请高手给改一下,
[loop=10]
<div class="photo_k">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div class="photo"><img src="{$Field(Tid,GetInfoUrl,2,2)}" width="108" height="143"></div></td>
</tr>
<tr>
<td height="22" class="td_xm">{$Field(Title,Text,0,...,0,)}</td>
</tr>
<tr>
<td>得票数:{$Field(Score,Num,0,2)} 票</td>
</tr>
<tr>
<td><a href="/photo/vote.asp?id={$Field(ID,GetInfoUrl,2,2)}"><img src="/img/tp.gif" border="0"></a></td>
</tr>
</table>
</div>
[/loop]