亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

asp 橫排顯示數(shù)據(jù)

 更新時間:2009年07月09日 00:22:30   作者:  
asp 橫排顯示數(shù)據(jù)的方法,實(shí)際上就是控制tr td來實(shí)現(xiàn)多行多列的實(shí)現(xiàn)方法,大家可以先用靜態(tài)的表格然后循環(huán)輸出就可以了。

復(fù)制代碼 代碼如下:

<%
sql="select * from serr where order by id asc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%><style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style>
<table width=""100%"" align='center'>
<%
for i=1 to rs.recordCount '變量i從1循環(huán)到數(shù)據(jù)庫中的全部記錄數(shù)
if (i mod 4 =1) then '每個tr顯示4個記錄,可根據(jù)需要自行修改
response.write "<tr>"
end if
response.write "<td width=200>"&rs("title")&"<br>"&rs("con")&"<br>"&rs("www")&"<br>"&rs("keyword")&"</td>"
if (i mod 4 = 0) then
response.write "</tr>"
end if
rs.movenext
next
rs.close
%>
</table>

相關(guān)文章

最新評論