日期:2014-05-17  浏览次数:20988 次

asp怎样实现地址栏中输入123.asp?s_type=1显示网页内容?
asp怎样实现地址栏中输入123.asp?s_type=1显示网页内容?

set   rs=server.createobject( "adodb.recordset ")
sql= "select   *   from   study   where   s_type= "&cstr(request.querystring( "s_type "))& "   order   by   s_id   desc "

?s_type=电脑知识

为什么不会显示??

------解决方案--------------------
where s_type= "&cstr(request.querystring( "s_type "))& "

改为

where s_type= ' "&cstr(request.querystring( "s_type "))& " '

要加 ' ' 的