为什么我这个怎么显示不了内容啊,其他的都可以,就是显示不了每页的内容而且,一按第几页就错误了。。
谁可以帮我吗?谢谢!
<!--#include file="conn.asp"-->
<table width="748" border="0" align="center">
<tr bgcolor="#CCCCCC">
<td>标题</td>
<td>有效日期</td>
<td>联系人</td>
<td>联系方式</td>
</tr>
<%
dim objrs ,sql
sql="select proname, data,person,tel from tbbuy"
set objrs =server.createobject("adodb.recordset")
objrs.open sql ,cnn ,1,1
sub showpage(objrs,pageno)
objrs.absolutepage=pageno
for i=1 to objrs.pagesize
response.write "<TR><td>"&objrs("proname")&"</td>"
response.write "<td>"&objrs("data")&"</td>"
response.write"<td>"&objrs("person")&"</td>"
response.write"<td>"&objrs("tel")&"</td></tr>"
objrs.movenext
next
end sub
objrs.pagesize=3
for i=1 to objrs.pagecount
response.write"<A HREF='paging.asp?page="&i&"'>"&i&" "&""
next
pageno=request("page")
if pageno<>""then
showpage objrs.pageno
end if
response.write "共"&objrs.pagecount&"页"
objrs.close
set objrs=nothing
cnn.close
set cnn=nothing
%>
</table>