关于查询数据库后如何显示到表格中的问题
初学者咨询各位大虾: 如何将查到的数据库记录显示在页面中是一个表格形式? 谢谢!
<table border="1" width="100%"> <tr> <%for each x in rs.Fields%> <th><%Response.Write(x.name )%></th> <%next%> </tr> <%do until rs.EOF%> <tr> <%for each x in rs.Fields%> <td><%Response.Write(x.value)%></td> <%next rs.MoveNext%> </tr> <%loop 'Response.Write(rs.recordcount) rs.close conn.close %> <tr> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> <td><%Response.Write("合计")%></td> </tr> </table>