asp分页代码---显示留言函数疑问

来源:百度知道 编辑:UC知道 时间:2024/05/05 00:53:44
由于代码很长,我在这只提取关键的有疑问的代码段
<%
sql="select * from guest order by id desc"
set rs=server.createobject("adodb.recordset") …………then
response.write "<p align=center>还 没 有 任 何 留 言</p>"
else
totalPut=rs.recordcount if currentpage<1 then
currentpage=1
…………………………
call showContent()
showpage totalput,listnum,"index.asp" end if

用%><%标号把它们分割是为了在当中加一些非asp的东西,如html的。
如果当中没有东西。

do while not rs.eof
%>
<%a=a+1
改成
do while not rs.eof
a=a+1
应该是一样的

多此一举 完全可以放一块
对象不支持此属性或方法: 'rs.eofa' //你后面多了个 a