.............急求解决问题...............
http://localhost/mc/a_admin/sea.asp?s1=140000&s2=140100&page=2
如我改变上页的页数为1时,为什么记录集不变?
<!--#include file="open_db.asp"-->
<%
s1=trim(request("s1"))
s2=trim(request("s2"))
url="sea.asp?s1="&s1&"&s2="&s2
if s1="" or s2="" then
response.write" 请选择上面的省份和地区进行搜索"
else
Set rs = Server.CreateObject("ADODB.Recordset")
search="select * from co where area='"&s1&"' and name='"&s2&"' order by id desc"
rs.open search,Cn,1,1
===================================
问题:我全用文本类形.
where area='"&s1&"' and name='"&s2&"'
--------------------
s1=trim(request("s1"))
s2=trim(request("s2"))
url="sea.asp?s1="&s1&"&s2="&s2
--------------------
将url的s1和s2改为'"&s1&"'也不行.