ASP 上一篇 下一篇 代码 出错 '800a01a8' 缺少对象: '' 100
相关代码如下:<%sql="selecttop1title,idfromKH_picture_displaywhereid<"&ID&"orderbyiddesc"set...
相关代码如下:
<%
sql="select top 1 title,id from KH_picture_display where id<"&ID&" order by id desc"
set rs=conn.execute(sql)
if rs.eof then
response.write "上一篇文章:没有了"
else
response.write "上一篇文章: <a href=Picture_detail.asp?id="&rs("id")&">"&rs("title")&"</a>"
end if
sql="select top 1 title,id from KH_picture_display where id>"&ID&" order by id"
set rs=conn.execute(sql)
if rs.eof then
response.write "下一篇文章:没有了"
else
response.write "下一篇文章:<a href=Picture_detail.asp?id="&rs("id")&">"&rs("title")&"</a>"
end if
%> 展开
<%
sql="select top 1 title,id from KH_picture_display where id<"&ID&" order by id desc"
set rs=conn.execute(sql)
if rs.eof then
response.write "上一篇文章:没有了"
else
response.write "上一篇文章: <a href=Picture_detail.asp?id="&rs("id")&">"&rs("title")&"</a>"
end if
sql="select top 1 title,id from KH_picture_display where id>"&ID&" order by id"
set rs=conn.execute(sql)
if rs.eof then
response.write "下一篇文章:没有了"
else
response.write "下一篇文章:<a href=Picture_detail.asp?id="&rs("id")&">"&rs("title")&"</a>"
end if
%> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询