请高手帮我看看这段asp代码--解释一下

webas001 2005-03-27 06:33:02
请高手帮我看看这段asp代码--解释一下
picrs = server.CreateObject ("adodb.recordset")
do while not picrs.eof
if Not Response.IsClientConnected then responseend
img=img & " <td width=""20%"" align=""center"">"& vbCrLf
img=img & "<A href='picshow.asp?id="&picrs("id")&"' target=""_blank""><img src="&trim(picrs("tu1"))&" border=0 width=""120"" height=""100""><br>"&trim(picrs("title"))&"</a>"& vbCrLf
img=img & "</td>"& vbCrLf
picrs.movenext
loop
picrs.clos
...全文
74 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lstup 2005-03-27
  • 打赏
  • 举报
回复
picrs = server.CreateObject ("adodb.recordset")
do while not picrs.eof
if Not Response.IsClientConnected then responseend
'判断客户段是否保持连接,(responseend,这个应该是写错了,应该是:response.end)
img=img & " <td width=""20%"" align=""center"">"& vbCrLf
img=img & "<A href='picshow.asp?id="&picrs("id")&"' target=""_blank""><img src="&trim(picrs("tu1"))&" border=0 width=""120"" height=""100""><br>"&trim(picrs("title"))&"</a>"& vbCrLf
img=img & "</td>"& vbCrLf
'大概意思就是,输出一个图片内容,在一个td里面。
picrs.movenext
'下一条记录
loop
picrs.clos



大概意思循环输出所有的记录,内容为一个td 里面的一个img

28,406

社区成员

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

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