|
主题:[求助]自定义的sql标签在首页怎么不能显示数据 [收藏主题] | 转到: |
支持(3) | 反对(3) 顶端 底部 |
select Title,Hits,Score from KS_Photo where tid='{$CurrClassID}' order by id desc
[loop=10] <table width="400" border="0" cellspacing="0" cellpadding="0" style="padding-bottom:5px;"> <tr> <td height="144" align="center" style="padding-bottom:5px;">名称: {$Field(Title,Text,30,...,0,)} </td> <td height="144" align="center" style="padding-bottom:5px;">投票数:{$Field(Score,Num,0,2)} </td> <td height="144" align="center" style="padding-bottom:5px;">投票比例: {$Field(Score,Num,2,2)} </td> </tr> </table> [/loop] |
|
支持(0) | 反对(0) 顶端 底部 |
select Title,Hits,Score from KS_Photo where tid='{$CurrClassID}' order by id desc
[loop=10] <table width="400" border="0" cellspacing="0" cellpadding="0" style="padding-bottom:5px;"> <tr> <td height="144" align="center" style="padding-bottom:5px;">名称: {$Field(Title,Text,30,...,0,)} </td> <td height="144" align="center" style="padding-bottom:5px;">投票数:{$Field(Score,Num,0,2)} </td> <td height="144" align="center" style="padding-bottom:5px;">投票比例: {$Field(Score,Num,2,2)} </td> </tr> </table> [/loop] |
|
支持(0) | 反对(0) 顶端 底部 |
<上一主题 | 下一主题 > |