首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

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

2012-03-14 
asp怎样实现地址栏中输入123.asp?s_type1显示网页内容?asp怎样实现地址栏中输入123.asp?s_type1显示网页

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 "))& " '

要加 ' ' 的

热点排行