当前位置: 首页 > 图文教程 > 网络编程 > ASP > 有关站内模糊查询的源程序!

ASP
用密码保护页面 (II)
用密码保护页面 (III)
简单的文件目录浏览源程序
ASP中的函数应用方法及应用举例(一)
ASP中的函数应用方法及应用举例(二)
完整的访问统计系统(一:数据库篇)
完整的访问统计程序(二 程序篇)
完整的访问统计程序(三 应用篇)
一个提供用户输入时期的绝好程序之(一)
一个提供用户输入时期的绝好程序之(二)
构建你的网站新闻自动发布系统之五
构建你的网站新闻自动发布系统之六
完整的访问统计程序(二 程序篇)
完整的访问统计程序(三 应用篇)
ASP环境下邮件列表功能的实现 (一)
ASP环境下邮件列表功能的实现 (二)
ASP环境下邮件列表功能的实现 (三)
ASP环境下邮件列表功能的实现 (四)
ASP进阶之文章在线管理更新(1)
ASP进阶之文章在线管理更新(2)

ASP 中的 有关站内模糊查询的源程序!


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 36 ::
收藏到网摘: n/a

  if bh="" then
   sql="select * from sl where bh like '%"&ss&"%'"
  else
bh=clng(bh)
sql="select * from sl where bh=" & bh & " "
end if
  if nam<>"" then
  sql=sql&" and nam like '%"&nam&"%' "
   end if
  if jz<>"" then
   sql=sql&" and jz like '%"&jz&"%' "
end if
if pc<>"" then
pc=cint(pc)
  sql=sql&" and pc="&pc&" "
  end if
  if zw<>"" then
  sql=sql&" and zw like '%"&zw&"%' "
end if