<%
sql=
select * from serr where order by id asc
set rs=server
createobject(
adodb
recordset
)
rs
open sql
conn
%><style type=
text/css
>
<!
body
td
th {
font
size:
px;
}
>
</style>
<table width=
%
align=
center
>
<%
for i=
to rs
recordCount
變量i從
循環到數據庫中的全部記錄數
if (i mod
=
) then
每個tr顯示
個記錄
可根據需要自行修改
response
write
<tr>
end if
response
write
<td width=
>
&rs(
title
)&
<br>
&rs(
con
)&
<br>
&rs(
www
)&
<br>
&rs(
keyword
)&
</td>
if (i mod
=
) then
response
write
</tr>
end if
rs
movenext
next
rs
close
%>
</table>
From:http://tw.wingwit.com/Article/program/net/201311/14147.html