sql=" 1=1"
if instr(key," ")<>0 then
str = split(key," ")
for i=0 to ubound(str)
sql = sql&" and title like'%"&str(i)&"%'"
next
strSQL="select * from gb where status='5' and "&sql&" order by pubdate desc"
else
strSQL="select * from gb where status='5' and title like '%"&key&"%' or keyword like '%"&key&"%' order by pubdate desc"
end if
推荐阅读
站内搜索
ASP多关键字检索
参与评论
请文明参与讨论,禁止漫骂攻击。
用户名:
(Ctrl+Enter 快速发表)
网友评论列表

© CopyRight 2008 Pcook.com.cn, Inc.All Rights Reserved.
Powered by:laoy8 Design by:Pcook 沪ICP备08004247号
Powered by:laoy8 Design by:Pcook 沪ICP备08004247号




