大家好 我现在正在学习做一个论坛 用ASP做的 现在我遇到了一个问题: 
   我建立了两个表 一个是板块组 一个版块 。如何将版块添加到指定的版块组呢?我看网上的代码,人家说这是联动菜单,但是我怎么也看不懂。希望高手指点。
  我的主页代码是这样的:
  <!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>MyForum</title>
</head><body><%
set rs=server.createobject("adodb.recordset")
sql="select * from dalei order by px desc"
rs.open sql,conn,1,1

if not rs.eof then
       do while not rs.eof
%>
<table width=100% border="1" cellpadding=2 cellspacing=1 bordercolor="#FF9F00">
<tr> <td colspan="7">
<table width="100%" height="25" cellpadding="1" cellspacing="1" bgcolor="#FF9F00">
<tr>
<td height="25"></td>
<td align="left"><strong><%=rs("daleiname")%></strong></td>
</tr>
  </table>
</td> </tr>
<tbody>
<tr align="center">
<td width="30" height="30" bgcolor="#FFF4DF"></td>
<td bgcolor="#FFF4DF">版块</td>
<td width="50" bgcolor="#FFF4DF">主题</td>
<td width="50" bgcolor="#FFF4DF">帖子</td> <td width="200" bgcolor="#FFF4DF">最后发表</td>
<td width="100" bgcolor="#FFF4DF">版主</td>
</tr>
<%     
set rs1=server.createobject("adodb.recordset")
sql1="select * from xiaolei order by id  desc"
rs1.open sql1,conn,1,1

if not rs.eof then
       do while not rs1.eof
%>

<tr>
<td align="center" width="40"><img src="images/forum_status.gif" width="40" /></td>
<td ><%=rs1("xiaoleiname")%><br /><%=rs1("sm")%></td>
<td align="center"></td>
<td align="center"></td>
<td width="200">主题:<br>作者:<br>时间:</td>
        <td align="center" width="100" ><%=rs1("banzhu")%></td>
</tr><%  rs1.movenext
loop
    end if
rs1.close
    set rs1=nothing
%>
</table>
<%  rs.movenext
loop
    end if

rs.close
    set rs=nothing
  
 %> 
</body>
</html>
<%
conn.close
set conn=nothing
%>