<%
Set rs = Server.CreateObject ("ADODB.Recordset")
sql = "Select * from text"
rs.Open sql,conn,1,1
Do Until rs.EOF
%>
怎么在这得到一个5列,无数行的表格,表格里的值都是<%=rs("text")%>
<%rs.MoveNext
Loop
end if
rs.close
Set rs = Nothing
conn.close
set conn=Nothing
%>
參考答案:<%
Set rs = Server.CreateObject ("ADODB.Recordset")
sql ="Select * from text"
rs.Open sql,conn,1,1
%>
<table>
<tr>
<%
i=1
Do while not rs.EOF
%>
<td><%=rs("text")%></td>
<%if i mod 5=0 then%>
</tr><tr>
<%end if%>
<%
i=i+1
rs.MoveNext
Loop
%>
</tr>
</table>
<%
rs.close
Set rs = Nothing
conn.close
set conn=Nothing
%>