标题: [求助]菜单调用问题 [打印本页] 作者: ㄣ紸縡のoァ 时间: 2010-1-16 00:22 标题: [求助]菜单调用问题 <select name="cat_id">
<%
sql="select * from zscat where sid=0"
set rs1=conn.execute(sql)
do while not rs1.eof
sql="select * from zscat where sid="&rs1("cat_id")
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
do while not rs2.eof
%>
<option value="<b><%=rs1("cat_id")%></b>"><b><%=rs1("cat_name")%></b></option>
<option value="<%=rs2("cat_id")%>">├ <%=rs2("cat_name")%></option>
<%
rs2.movenext
loop
rs1.movenext
loop
rs2.close
set rs2=nothing
rs1.close
set rs1=nothing%>
</select>