<%
dim cid,coid
cid = request("cid") 'cid 大类id
coid = request("coid") 'coid 中类id
set rs=server.createobject("adodb.recordset")
sql = "select * from edu_c" '表一 大类表
rs.open sql,conn,1,1
strOption1 = ""
do while not rs.eof
if cstr(rs("id")) = cstr(cid) then
strOption1 = strOption1 & ""
else
strOption1 = strOption1 & ""
end if
rs.movenext
&nbs
p; loop
rs.close
if cid <> "" then
sql = "select * from edu_co where c_id=" & cid '表二 中类表 bid==表一中的id
rs.open sql,conn,1,1
strOption2 = ""
do while not rs.eof
if cstr(rs("id")) = cstr(coid) then
strOption2 = strOption2 & ""
else
strOption2 = strOption2 & ""
&nbs
p; end if
rs.movenext
loop
rs.close
end if
if coid <> "" then
sql = "select * from edu_s where co_id= " & coid '表三 小类表 mid==表二的id
rs.open sql,conn,1,1
strOption3 = ""
while not rs.eof
if cstr(rs("id")) = cstr(sid) then
strOption3 = strOption3 & ""
else
strOption3 = strOption3 & ""
end if
rs.movenext
wend
rs.close
end if
%>
<% Option Explicit %>
<%
Dim DBC,CollectConn
Dim SelectPath
Set DBC = New DataBaseClass
Set CollectConn = DBC.OpenConnection()
Set DBC = Nothing
SelectPath = "/"
Dim Rs
%>