日期:2010-09-14 浏览次数:20942 次
代码如下:
<%
'绑定数据库Conn,略......
Set rs = Conn.Execute("select top 7 ID from news order by ID asc")
if not(rs.eof and rs.bof) then
response.write "<table width=""80%"" border=""1"">" & Chr(10)
do while not rs.eof
response.write " <tr width=""20%"">" & Chr(10)
for i=1 to 4
response.write " <td>"
if not rs.eof then
response.write rs("ID")
rs.movenext
else
response.write "."
end if
response.write "</td>" & Chr(10)
next
response.write " </tr>" & Chr(10)
loop
response.write "</table>"
else
response.write "未有记录......"
end if
rs.close : set rs = nothing
%>