请高手回答ASP问题

来源:百度知道 编辑:UC知道 时间:2024/05/22 02:25:06
sql="select * from SMT_qylinks where SMT_qylx=10 order by SMT_id desc"
去掉SMT_qylx=10 网页就能显示,加上就网页就超时,无法显示,我不知道什么原因,请高手看看,完整代码如下:(在线等)
<%set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from SMT_qylinks where SMT_qylx=10 order by SMT_id desc"
rs.open sql,conn,1,1
if not rs.eof then
n=0
do while not rs.eof
n=n+1%>
<td height="71">
<a href=<%=rs("SMT_qyurl")%> title=<%=rs("SMT_qyms")%> target="_blank"><%=rs("SMT_qyname")%></a></td>
<%if n mod 4=0 then response.write "</tr><tr align=center>"
rs.movenext
loop
end if
rs.close
set rs=nothing%>
</tr>
加上where条件语句后就显示
Active Server Pages 错误 'ASP 0113'

脚本超时

/3.asp

超过了脚本运行的最长时间。可以为 Server.ScriptTimeOut 属性指定新值或更改 IIS 管理工具中的相应值来更改此限制

SMT_qylx=10 数据库中可存在这个值啊?或者数据类型不对?

改成 SMT_qylx='10' 看看

这样写看看
sql="select * from SMT_qylinks "
if SMT_qylx<>0 then
sql=sql&" where SMT_qylx=10