|  | 
| 本帖最后由 wanglei88816 于 2015-12-16 23:17 编辑 
 [.sql mysql="select * from `ourphp_comment` where  && OP_Type = 'photoview' order by time desc LIMIT 0,10" name="sql".]
 <div >
 <table width="100%" border="0" cellpadding="10" >
 <tr>
 <td width="60%" bgcolor="#EBEBEB">评论内容</td>
 <td width="15%" bgcolor="#EBEBEB">评论人</td>
 </tr>
 [.section loop=$sql  name=op.]
 <tr><td>[.$sql.OP_Content.]</td>
 <td>[.$sql.OP_Name.]</td>
 </tr>
 [.sectionelse.]
 <tr>
 <td colspan="7">[.$ourphp_access.]</td>
 </tr>
 [./section.]
 </table>
 </div>
 
 
 [./sql.]
 
 
 
 
 
 现在写成这样的。。但是结果 是
  都输出一条相同的记录的,输出的是第一条记录。。, 
 
 | 
 |