查询结果 翻页问题.

dansheng2000 dansheng2000 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
请问查询结果翻页如何实现......

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>篇]



翻页后数据不对,篇数也不对。请教....
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
dansheng2000
ASP 28,401 成员 356,940 内容