request 取值

来源:百度知道 编辑:UC知道 时间:2024/05/25 10:24:02
<%
call opendb(session(website&"_lang"))
set rs=server.createobject("adodb.recordset")
set rs1=server.createobject("adodb.recordset")
id=chknum(request.querystring("id"),"url error") (好像是取值了 不懂)
rs.open "select * from btype where id="&id,conn,1,1
if rs.eof then
response.write "<script>alert('产品一级类别不存在');history.back();</script>"
response.end
end if
t_btypename=rs("btypename")
t_btypepath=clearstr(t_btypename)
t_description=rs("description")
rs.close
rs.open "select id,btypename from btype order by orderid asc,id"
do while not rs.eof
t_typelist=t_typelist&"<a href=<@path@>"&clearstr(rs("btypename"))&"-index.htm><strong>"&rs("btypename")&"</strong></a>" (生成一级目录)
if cint(id)=cint(rs("

rs.open "select * from btype where id="&id,conn,1,1

不要传进来id,不就可以实现了吗?

或者

rs.open "select * from btype where id like"&id,conn,1,1
(id为"%")

不知道是否和楼主的思路一样?

切磋。