查询结果 翻页问题.
请问查询结果翻页如何实现......
sql="select * from book where (xuhao = '"&request("xuhao")&"' ) and (TIANBIAORQ between '"&cdate(request("time1"))&"'and '"&cdate(request("time2"))&"')"
<%if rs3.pagecount<>1 and rs3.pagecount<>0 then%>
<%if page<rs3.pagecount then%>
<%if page=1 then %>
[首页] [上一页]
<%else%>
[<a Href="seach-do.asp?page=<%=1%>&xuhao=<%request("xuehao")%>">首页</a>] [<a Href="seach-do.asp?page=<% =page-1 %>&xuhao=<%request("xuehao")%>">上一页</a>]
<% end if %>
[<a Href="seach-do.asp?page=<%page+1%>&xuhao=<%request("xuehao")%>">下一页</a>] [<a Href="seach-do.asp?page=<%=rs3.PageCount%>&xuhao=<%request("xuehao")%>">尾页</a>]
<%else%>
[<a Href="seach-do.asp?page=<% = 1%>&xuhao=<%request("xuehao")%>">首页</a>] [<a Href="seach-do.asp?page=<% =page -1 %>&xuhao=<%request("xuehao")%>">上一页</a>]
[下一页] [尾页]
<%end if %>
<%else%>
[首页] [上一页] [下一页] [尾页]
<%end if%>
[页次:<font color=red><b><%=page%></b></font>/<%=rs3.PageCount%>]
[共<font color=red><b><%=rs3.RecordCount%></b></font>篇]
翻页后数据不对,篇数也不对。请教....
sql="select * from book where (xuhao = '"&request("xuhao")&"' ) and (TIANBIAORQ between '"&cdate(request("time1"))&"'and '"&cdate(request("time2"))&"')"
<%if rs3.pagecount<>1 and rs3.pagecount<>0 then%>
<%if page<rs3.pagecount then%>
<%if page=1 then %>
[首页] [上一页]
<%else%>
[<a Href="seach-do.asp?page=<%=1%>&xuhao=<%request("xuehao")%>">首页</a>] [<a Href="seach-do.asp?page=<% =page-1 %>&xuhao=<%request("xuehao")%>">上一页</a>]
<% end if %>
[<a Href="seach-do.asp?page=<%page+1%>&xuhao=<%request("xuehao")%>">下一页</a>] [<a Href="seach-do.asp?page=<%=rs3.PageCount%>&xuhao=<%request("xuehao")%>">尾页</a>]
<%else%>
[<a Href="seach-do.asp?page=<% = 1%>&xuhao=<%request("xuehao")%>">首页</a>] [<a Href="seach-do.asp?page=<% =page -1 %>&xuhao=<%request("xuehao")%>">上一页</a>]
[下一页] [尾页]
<%end if %>
<%else%>
[首页] [上一页] [下一页] [尾页]
<%end if%>
[页次:<font color=red><b><%=page%></b></font>/<%=rs3.PageCount%>]
[共<font color=red><b><%=rs3.RecordCount%></b></font>篇]
翻页后数据不对,篇数也不对。请教....
...全文
相关推荐
PHP翻页跳转功能实现方法
主要介绍了PHP翻页跳转功能实现方法,下面就来介绍一下如何实现当前页面数据资料显示数量及如何实现动态的翻转功能,需要的朋友可以参考下
php翻页程序,多功能翻页!
php的一个翻页小程序,提供给大家学习!
将SQL的查询结果以表格形式返回,并生成翻页等
可以将SQL的查询结果,以表格的形式返回,任何表格,任何SQL语句都可以实现显示,方便开发,因为这样可以减少我们每次都去从数据库里读数据的时候,需要再次重新写代码的过程了。
jsp做翻页,查询数据库总页数的最佳实现
本人初学,做了一个jsp页面翻页的功能,仅供参考,不足之处请多多指教.
siteServer翻页功能
我也是一个新手,在做翻页的时候,百度了一下没有答案,所以就诞生了这东西,希望能帮助到大家


