数据库查询结果发布到网页问题......

Snakesnoop 2006-01-18 11:40:11
怎样才能让数据库查询结果的多条记录自动换行发布到网页上啊???!!!!我怎么不行啊!

StrSql2 = "select top 3 * from Snake_ann order by annid DESC"
Set rs4 = Conn.Execute(StrSql2)
StrHtml4 =rs4("title")
response.write StrHtml4
这样网页上只显示一条记录啊


...全文
87 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wansai00 2006-01-18
  • 打赏
  • 举报
回复
c
KimSoft 2006-01-18
  • 打赏
  • 举报
回复
StrSql2 = "select top 3 * from Snake_ann order by annid DESC"
Set rs4 = Conn.Execute(StrSql2)
while not rs4.eof
response.write =rs4("title")
rs4.movenext
wend
rs4.close
set rs4 = nothing
hglwy 2006-01-18
  • 打赏
  • 举报
回复
你得循环呀
do while not rs4.eof

response.write rs4("title")
response.write "<br>"
rs4.movenext
loop
Snakesnoop 2006-01-18
  • 打赏
  • 举报
回复
多谢高手指点!!

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧