织梦手机模板制作:跪求高手进

来源:百度文库 编辑:高校问答 时间:2024/04/29 05:49:05
请朋友们帮我编写一个简单的关于:asp的"字符串的查找"代码,明天考试呀紧急

<% sql="select * from News where ArticleID>0"
if Title<>"" then
sql=sql & " and title like '%" & Title & "%' "
end if
if NewsClassName<>"" then
sql=sql & " and NewsClassName='" & NewsClassName & "' "
else
end if
sql=sql & " order by articleid desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
%>

靠,你学啥来着

也不说给点奖励。 没有人帮你的啦。快把你的分数奖励出来吧。