xinwen.asp
改成这样,还是提示同行的错误
错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象
lianjie.asp, 第 6 行
<%
dim sql
Dim stringes,displays,homepages,filers,title,ok
set rs=server.createobject("adodb.recordset")
sql="select * from info"
rs.open sql,conn
stringes=rs("stringe")
displays=rs("display")
homepages=rs("homepage")
filers=rs("filer")
rs.close
sql="Select top 10 * From news Order By Date DESC"
rs.open sql,conn
if not rs.eof then
rs.movefirst
ok=ok & ""
do while not rs.eof
if len(rs("title"))>stringes then
title=left(rs("title"),stringes)
else
title=rs("title")
end if
ok=ok &"<a href=../Display.asp?id=" & rs("id") & " title=点击链接,进入详细页面 target=_blank>"&title&"</a>[<font size=1>"&datevalue(rs("Date")) & "</font>]<br>"
rs.movenext
loop
end if
rs.close
set rs=nothing
ok=""&ok&""
response.write ok
%>
改成这样,还是提示同行的错误
错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象
lianjie.asp, 第 6 行
<%
dim sql
Dim stringes,displays,homepages,filers,title,ok
set rs=server.createobject("adodb.recordset")
sql="select * from info"
rs.open sql,conn
stringes=rs("stringe")
displays=rs("display")
homepages=rs("homepage")
filers=rs("filer")
rs.close
sql="Select top 10 * From news Order By Date DESC"
rs.open sql,conn
if not rs.eof then
rs.movefirst
ok=ok & ""
do while not rs.eof
if len(rs("title"))>stringes then
title=left(rs("title"),stringes)
else
title=rs("title")
end if
ok=ok &"<a href=../Display.asp?id=" & rs("id") & " title=点击链接,进入详细页面 target=_blank>"&title&"</a>[<font size=1>"&datevalue(rs("Date")) & "</font>]<br>"
rs.movenext
loop
end if
rs.close
set rs=nothing
ok=""&ok&""
response.write ok
%>