死神觉醒完现术一护12:帮我看看这个ASP错在哪里?

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 21:39:24
<%
sqlstr="select * from cs where cs_type_id<>0 and is_top=1 "

if first_id <>"" and first_id<>"0" then
myrs.open "select * from cs_type where parent_id="&first_id ,conn,1
in_str="("
while not myrs.eof
in_str=in_str & myrs("cs_type_id") & ","
myrs.movenext
wend
in_str=in_str & "0)"
myrs.close
sqlstr=sqlstr & " and cs_type_id in "&in_str
end if

if cs_type_id<>"" and cs_type_id<>"0" then
sqlstr=sqlstr & " and cs_type_id="&cs_type_id
end if

if is_hot<>"" then
sqlstr=sqlstr & " and is_hot="&is_hot
end if

if keyword<>"" then
sqlstr=sqlstr & " and title_cn like '%" & keyword & "%'"
end if

sqlstr=sqlstr & " order by cs_id desc"
'Response.Write sqlstr
'Response.End

myrs.Open sqlstr,conn,1,1

%>

..............
14 <input type=submit value="提交查询内容">
15 <input type=reset value="重置"
.................
在第15行最后少一个小括号应该是这样的
<input type=reset value="重置">