28,391
社区成员
发帖
与我相关
我的任务
分享
dim xx,aid
xx="1,2,3,4"
aid=split(xx,",")
for i=0 to 3
Set Rs7 = Server.CreateObject("Adodb.Recordset")
Sql7 = "SELECT top 500 Title FROM Article where aid="& aid(i)&" order by id desc"
Rs7.Open Sql7,conn,1,1
if not (rs7.bof and rs7.eof) then
if rs7.RecordCount>5 then
aaaaa=5
else
aaaaa=rs7.RecordCount
end if
if aid=1 then Response.Write "分类1"
if aid=2 then Response.Write "分类2"
For j=1 to aaaaa
Response.Write ("(utf8(rs7("Title")) <br/>")
Next
Rs7.MoveNext
end if
Rs7.close
set rs7=nothing
next
dim xx,aid
xx="1,2,3,4"
aid=split(xx,",")
for i=0 to 3
Set Rs7 = Server.CreateObject("Adodb.Recordset")
Sql7 = "SELECT top 500 Title FROM Article where aid="& aid(i)&" order by id desc"
Rs7.Open Sql7,conn,1,1
if not (rs7.bof and rs7.eof) then
if rs7.RecordCount>5 then
aaaaa=5
else
aaaaa=rs7.RecordCount
end if
if aid=1 Response.Write "分类1"
if aid=2 Response.Write "分类2"
For j=1 to aaaaa
if rs7.eof then
exit for
end if
Response.Write ("(utf8(rs7("Title")) <br/>")
Rs7.MoveNext
Next
end if
Rs7.close
set rs7=nothing
next
dim xx,aid
xx="1,2,3,4"
aid=split(xx,",")
for i=0 to 3
Set Rs7 = Server.CreateObject("Adodb.Recordset")
Sql7 = "SELECT top 500 Title FROM Article where aid="& aid(i)&" order by id desc"
Rs7.Open Sql7,conn,1,1
if not (rs7.bof and rs7.eof) then
if rs7.RecordCount>5 then
aaaaa=5
else
aaaaa=rs7.RecordCount
end if
if aid=1 Response.Write "分类1"
if aid=2 Response.Write "分类2"
For j=1 to aaaaa
if rs7.eof then
exit for
end if
Response.Write ("(utf8(rs7("Title")) <br/>")
Rs7.MoveNext
Next
end if
Rs7.close
set rs7=nothing
next