这是我现在的那段代码,是不是逻辑上出的错误,请老兄帮忙看看
<%if request("key")="" and request("lb")="" and request("cd")="" then%>
<%else
set rs_list=server.CreateObject("ADODB.RecordSet")
set rs_type=server.CreateObject("ADODB.RecordSet")
set rs=server.CreateObject("ADODB.RecordSet")
KN=split(trim(request("key"))," ")
for i = 0 to ubound(KN)
KNN=KNN&" or name like '%"&KN(i)&"%' or name like '%"&KN(i)&"%'"
next
%>
<%
sql="select * from data where (name+tel+body like '%"&trim(request("key"))&"%'"&KNN&")"&skCD&" order by "&lb&" desc"
rs.open sql,conn,1,1
if rs.eof then
%>