<% text1=trim(request("text1")) text2=trim(request("text2")) set rs=server.createobject("adodb.recordset") sql="select * from wwww where "&text2&" like '%"&text1&"%' order by id desc" rs.open sql,conn,1,1 %>
text2是下拉列表的值 当它是公司名时就溢出 为姓名/电话/等等时 正常
text1是一个文本框
sql="select * from wwww where "&text2&" like '%"&text1&"%' order by id desc"