rs.open sql,connstr,1,1---------->
rs.open sql,conn,1,1

解决方案 »

  1.   

    in the second part, where did you increment temp_i?you should change the second
    temp_j=tem_j+1
    to
    temp_i=temp_i+1
      

  2.   

    问题出现在第二段:
    var village=new array()
    <% for temp_i=0 to temp_i/2-1 %>
       village[<%=temp_i%> =new array();
       <% next %>
       village[0][0]="请选择";
       village[0][1]=""; 
    <%
     temp_i=1
     while temp_i<=municount 
     %>
     village[<%=temp_i%>][0]="请选择";
     village[<%=temp_i%>][0]="";
     <%
     response.write("munipart[temp_i]"&munipart(temp_i))
     sql="select 企业_id ,乡镇 from 分支机构表 where 市县='"&munipart(temp_i)&"'"
     set rs=conn.execute(sql)
     temp_j=2
     while not rs.eof
     %>
     village[<%=temp_i%>][<%=temp_j%>]="<%=rs("乡镇")%>";
     village[<%=temp_i%>][<%=temp_j+1%>]="<%=rs("企业_id")%>";
     <%
     temp_j=temp_j+2
     rs.movenext
     wend
     temp_i=tem_i+1
     wend
     %>我改了temp_i ,还是如此???  不解不解
      

  3.   

    temp_i=tem_i+1
              ^^^^^
    ===>
    temp_i=temp_i+1