ASP初学!解个数据横显

来源:百度知道 编辑:UC知道 时间:2024/05/28 19:20:16
这是一个连接数据加行表单的代码~~~"可是我不懂怎么样在能把竖显改成横显~请给个详细代码好么?谢谢.<%
set rs=server.createobject("adodb.recordset")
if typeid="" then
sql="Select * From T_STUDENT order by T_S_ID asc"
end if
rs.open sql,conn,1,1
do while not rs.eof
%>
<td width="243" height="274" valign="top"><IMG SRC="<%=rs("T_S_PHOTO")%>"width="243" height="300" border="0"></td>
</tr>
<%i=i+1
IF i>=3 then exit do
rs.movenext
loop
%>
http://hi.baidu.com/cnwlzy/blog/item/461a8311e2d5a07fcb80c4d4.html

我写的分页函数,分行重要的就是这句

<%
if n mod 1 = 0 then
response.write("</tr><tr

在这一句

<td width="243" height="274" valign="top"><IMG SRC="<%=rs("T_S_PHOTO")%>"width="243" height="300" border="0"></td>

后边加<br>

<td width="243" height="274" valign="top"><IMG SRC="<%=rs("T_S_PHOTO")%>"width="243" height="300" border="0"></td>
</tr>
把这一句的</tr>拿掉,你这样试试:
<%
set rs=server.createobject("adodb.recordset")
if typeid="" then
sql="Select * From T_STUDENT order by T_S_ID asc"
end if
rs.open sql,conn,1,1
do while not rs.eof
%>
<td width="243" height="274" valign="top"><IMG SRC="<%=rs("T_S_PHOTO")%>"width="243" height="300" border="0"&g