asp 价格范围搜索

来源:百度知道 编辑:UC知道 时间:2024/06/03 20:33:18
<%
la=trim(request("la"))
lz=trim(request("lz"))
ma=trim(request("ma"))
mz=trim(request("mz"))
ja=trim(request("ja"))
jz=trim(request("jz"))

ff=""

if request("lx")<>"" then ff=ff&" and fangx ='"&request("lx")&"' "
if request("qy")<>"" then ff=ff&" and diduan ='"&request("qy")&"' "
if request("fx")<>"" then ff=ff&" and taox ='"&request("fx")&"' "
if request("dz")<>"" then ff=ff&" and weizi like '%%"&request("dz")&"%%' "

if mz<>0 then ff=ff&" and (person4 >='"&ma&"' and person4<='"&mz&"') "

%>

<%Set rs =

if mz<>0 then ff=ff&" and (person4 >="&ma&" and person4<="&mz&") "
其中一行改成这样,因为是比较数字大小,就不要用引号了.person4 这个字段也要用数字类型,你这问题我肯定能解决,按上面的改了还不行,到QQ群17320427找群主我