请教,各位兄弟请进!!

chenmei 2003-10-15 11:22:29
这两天没事,就想到做一个显示二级目录的程序,但却出了一点问题,点击主目录名显示不出来子目录,程序如下:
<%for j=1 to lise%>
<tr>
<td width="200"><div align="center">
<%response.Write("<a href='main.asp?id="&rs("id")&"'>")%>
<%=rs("name")%></a> </div></td>
<td width="80"><%response.Write("<a href='class1.asp?id="&rs("id")&"' target='_blank'>")%>添加子类</a></td>
</tr>
<%
idt=request("id")
if rs("id")=Request("id") then
set rs1=server.createobject("adodb.recordset")
sql="select * from class where mid='"&idt&"'"
rs1.open sql,conn,1,1
lise=rs1.RecordCount
for i=1 to lise%>
<tr><td colspan="2"><%=rs1("name")%></td></tr>
<%response.Write(id1)
rs1.movenext
next
end if
rs.movenext
next
%>
我想可能是 if rs("id")=Request("id") then这一句出错,但却不知道为什么,怎么出错了.请教大家.
...全文
42 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenmei 2003-10-15
  • 打赏
  • 举报
回复
请大家进来看一下吧,谢谢了!!!!
chenmei 2003-10-15
  • 打赏
  • 举报
回复
不行:(
多菜鸟 2003-10-15
  • 打赏
  • 举报
回复
if rs("id")=idt then

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧