asp 死循环 速求解
setobjfso=CreateObject("Scripting.FileSystemObject")root=Server.MapPath(seoDir)str="<...
set objfso = CreateObject("Scripting.FileSystemObject")
root = Server.MapPath(seoDir)
str = "<?xml version=""1.0"" encoding=""utf-8"" ?>"
str = str &"<Info>"
Set rs = server.CreateObject("adodb.recordset")
sql = "select * from map"
rs.Open sql, conn, 1, 1
do while not rs.eof
str = str&("<Part id=""part1"">")
str = str&("<text><![CDATA["&rs("Map_Name")&"]]></text>")
str = str&("<text><![CDATA[")
Set rs1 = server.CreateObject("adodb.recordset")
sql = "select * from map_content where catid='"&rs("mapid")&"'"
rs1.open sql,conn,1,1
do while not rs1.eof
str = str&("<a href='http://daily.travel.163.com/sight/site.jsp?id=7536' target=""_blank"">["&rs1("Name")&"]</a>")
rs1.movenext
loop
str = str&("<a href='http://daily.travel.163.com/sight/province.jsp?id=37' target=""_blank"">>> 更多景点</a>]]></text></Part>")
rs.movenext
loop
str = str &"</<Info>>"
set fso = nothing 展开
root = Server.MapPath(seoDir)
str = "<?xml version=""1.0"" encoding=""utf-8"" ?>"
str = str &"<Info>"
Set rs = server.CreateObject("adodb.recordset")
sql = "select * from map"
rs.Open sql, conn, 1, 1
do while not rs.eof
str = str&("<Part id=""part1"">")
str = str&("<text><![CDATA["&rs("Map_Name")&"]]></text>")
str = str&("<text><![CDATA[")
Set rs1 = server.CreateObject("adodb.recordset")
sql = "select * from map_content where catid='"&rs("mapid")&"'"
rs1.open sql,conn,1,1
do while not rs1.eof
str = str&("<a href='http://daily.travel.163.com/sight/site.jsp?id=7536' target=""_blank"">["&rs1("Name")&"]</a>")
rs1.movenext
loop
str = str&("<a href='http://daily.travel.163.com/sight/province.jsp?id=37' target=""_blank"">>> 更多景点</a>]]></text></Part>")
rs.movenext
loop
str = str &"</<Info>>"
set fso = nothing 展开
中智咨询
2024-08-28 广告
2024-08-28 广告
在当今竞争激烈的商业环境中,企业需要不断提高自身的竞争力,以保持市场份额和增加利润。通过人效提升,企业可以更有效地利用有限的资源,提高生产力和效益,从而实现盈利目标。中智咨询提供全方位的组织人效评价与诊断、人效提升方案等数据和管理咨询服务。...
点击进入详情页
本回答由中智咨询提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询