ASP中split的问题
dowhilenotrs.eofifnot(rs.bofandrs.eof)thenid=rs("id")MasterId=rs("MasterId")weiboId=r...
do while not rs.eof
if not(rs.bof and rs.eof) then
id =rs("id")
MasterId =rs("MasterId")
weiboId =rs("weiboId")
weibolink =rs("weibolink")
weiboHost =rs("weiboHost")
end if
a = weiboId
a = a&","
arr = split(a,",")
response.Write(""&ubound(arr)-1&",")
set rs1=server.createobject("adodb.recordset")
sql1="select * from TMasterLink where link = '"&weibolink&"'"
OpenConn : rs1.open sql1,Conn,1,1
do while not rs1.eof
if not(rs1.bof and rs1.eof) then
accessToken = rs1("accessToken")
image = rs1("image")
wbname = rs1("wbname")
fensiNum = rs1("fensiNum")
weibolink = rs1("link")
end if
rs1.movenext()
loop
rs1.close:set rs1=Nothing
rs.movenext()
loop
结果为什么是0? 我单独输出a的时候是3个值,数组的最大标示应该是2才对啊! 展开
if not(rs.bof and rs.eof) then
id =rs("id")
MasterId =rs("MasterId")
weiboId =rs("weiboId")
weibolink =rs("weibolink")
weiboHost =rs("weiboHost")
end if
a = weiboId
a = a&","
arr = split(a,",")
response.Write(""&ubound(arr)-1&",")
set rs1=server.createobject("adodb.recordset")
sql1="select * from TMasterLink where link = '"&weibolink&"'"
OpenConn : rs1.open sql1,Conn,1,1
do while not rs1.eof
if not(rs1.bof and rs1.eof) then
accessToken = rs1("accessToken")
image = rs1("image")
wbname = rs1("wbname")
fensiNum = rs1("fensiNum")
weibolink = rs1("link")
end if
rs1.movenext()
loop
rs1.close:set rs1=Nothing
rs.movenext()
loop
结果为什么是0? 我单独输出a的时候是3个值,数组的最大标示应该是2才对啊! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询