<%
set rs...............
sql=select * from 表
rs.open sql,conn 1,1
%>
<%
do while not rs.eof
%>
<%=rs("字段1")%>
<% rs.movenext
loop
%>
我如何让字段一个所有数据每行按两个显示出来???
...全文
2084打赏收藏
asp 数据库查询的数据全部显示如何控制一行两个数据???
<%
set rs...............
sql=select * from 表
rs.open sql,conn 1,1
%>
<%
i=1
do while not rs.eof
%>
<%=rs("字段1")%>
<% if i mod 2 = 0 then response.write "<br />"
i = i + 1
rs.movenext
loop
%>