欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時(shí)間:2009年07月09日 00:22:30   作者:  
asp 橫排顯示數(shù)據(jù)的方法,實(shí)際上就是控制tr td來(lái)實(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ù)庫(kù)中的全部記錄數(shù)
if (i mod 4 =1) then '每個(gè)tr顯示4個(gè)記錄,可根據(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)文章

最新評(píng)論