do while not rs.eof写错了么?

2025-05-19 19:00:45
推荐回答(1个)
回答1:






<%
j=0
Sort2ListSQL="Select * From system_text_sort Where big_id ="& Sort1ListRs("big_id") &" Order By sx "
Set Sort2ListRs=Server.CreateObject("ADODB.recordset")
Sort2ListRs.Open Sort2ListSQL,conn,2,2
If not Sort2ListRs.eof then
do while not Sort2ListRs.eof
if j/2=j\2 then
%><% end if %>

<%
j=j+1
Sort2ListRs.movenext
loop
else
Response.Write "没有新闻记录!"
end if
Sort2ListRs.close
set Sort2ListRs=nothing
%>
" ><%= Sort2ListRs("sort_name") %>


已经调试过,没有问题