28,391
社区成员
发帖
与我相关
我的任务
分享
<%
...
Set rs = Server.CreateObject("Adodb.Recordset")
rs.CursorLocation = 1
rs.Open "SELECT * FROM myCount", conn, 1, 1
Do While Not rs.EOF
str=str&rs(0)&","&rs(1)&"|"
rs.MoveNext
Loop
rs.Close
str=left(str,len(str)-1)
response.write str
conn.Close
Set rs = Nothing
Set conn = Nothing
%>
<table>
<%
...
Set rs = Server.CreateObject("Adodb.Recordset")
rs.CursorLocation = 1
rs.Open "SELECT * FROM myCount", conn, 1, 1
Do While Not rs.EOF
%>
<tr>
<td><%=rs(0)%></td><td><%=rs(1)%></td>
</tr>
<%
rs.MoveNext
Loop
rs.Close
conn.Close
Set rs = Nothing
Set conn = Nothing
%>
</table>