手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 横排显示数据
asp 横排显示数据
摘要:复制代码代码如下:

复制代码 代码如下:

<%

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">

<>

</style>

<table width=""100%"" align='center'>

<%

for i=1 to rs.recordCount '变量i从1循环到数据庫中的全部记录数

if (i mod 4 =1) then '每个tr显示4个记录,可根据需要自行修改

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>

【asp 横排显示数据】相关文章:

asp显示日历效果

Asp类 的数据库领域

显示在线人数

asp 常用函数用法

asp 删除图片与文件函数

asp 字符串连接数据库方法

asp中向文本框输出数据原样式的函数

asp 中常用的文件处理函数

asp 查询数据代码

ASP:使用数据绑定控件显示数据

精品推荐
分类导航