用ASP+access,点击超链接,在另一页面显示数据库相关内容 <% search = trim(Request("search"))
select1 = trim(Request("select1"))
select case select1
case "1"
sql = "select * from reg2 where 身份证号码 like '" & search & "' order by id desc"
case "2"
sql = "select * from reg2 where 手机号码 like '" & search & "' order by id desc"
case "3"
sql = "select * from reg2 where 手机串码 like '" & search & "'order by id desc"
end select %>
<% sql="select * from reg2"
set rs=db.execute(sql)
response.write"<a href=search1.asp?id=<%=rs("id")%>target="_blank"><%=rs("工单号码")%></a>"%>
总是提示语句未结束,请问怎么修改,另外search1.asp,接受数据的代码怎么写,我是新手,请高手帮助!