源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

支持加号空格的查询

  • 时间:2022-06-10 08:29 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:支持加号空格的查询
[u]复制代码[/u] 代码如下:
<% Response.write "关键字:("&trim(request("Q"))&")"&"<hr>" x=Replace(trim(request("Q"))," ",",") 'x=array(x) t=split(x,",") SQL="Select * From TB where kis<>0" for i=0 to UBound(t) if t(i)<>"" then Response.write "第"&i+1&":"&t(i)&"<hr>" SQL=SQL&" or title like '"&t(i)&"'"  '这个是关键 end if next Response.write SQL %> <Form action=""> <table> <tr> <td><Input Name="Q" onkeyup="this.value=this.value.replace(/\s+/g,' ')"><input type="submit" value="查 询"></td> </tr> </table> </form>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部