ASP程序为什么会循环2次,不知道哪里的原因

来源:百度知道 编辑:UC知道 时间:2024/06/07 17:58:21
<%
Set Rs=Conn.ExeCute("select * from Elook_Article order by ArticleID desc")
do while not rs.eof
UploadFiles=Rs("UploadFiles")
if UploadFiles="" then
else
pathname=split(UploadFiles,"|")
for i=0 to ubound(pathname)
aaa=pathname(0)
next
end if
%>
读出来的前面的图片循环了2次,最后一张没有循环

检查一下Rs("UploadFiles")
或者输出一下ubound(pathname) ,看看数组的上标是多少.

你这个俺是看不明白呀
应该和你但出来的表的结果有关吧

你用do while就是走两次 你用while