nian=request("nian")
yue=request("yue")
time1=""&nian&"-"&yue&""
time like '%"&time1&"%'
建一个ASP页面,然后nian=request("nian")
yue=request("yue")
time1=""&nian&"-"&yue&""
sql="select * from liuyan where time like '%&time1&%' "
不过我觉得你最好是把那个time字段另外取一个名字好些,因为time本身是关键字
搜索按扭的<a ????>具体应该怎么写?新建的asp页面为sou.asp,连接的时候是不是这样?<a href="sou.asp"(这后面还需要加东西吗)><input type=submit value="搜索">
我的sou.asp如下
<%
dim con,connstr
set con=server.createobject("adodb.connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("123.mdb")
con.open connstr
set rs=server.createobject("adodb.recordset")
nian=request("select")
yue=request("select2")
time1=""&nian&"-"&yue&""
'sql=("select * from liuyan where time like '%"&time1&"%'")
set rs=con.execute("select * from liuyan where time like '%"&time1&"%'")
con.execute sql
con.close
response.redirect ("guanli.asp?id=<%=rs("id")%>")
%>