内容下上分页

WBOY
Release: 2016-06-13 10:34:21
Original
740 people have browsed it

内容上下分页
思路:
你指定一个ID(当前的,比如是10) 
 上一页就是比10小而且是最大的。只要你去获取比10小而且是最大的。
下一页就是比10大的,而且是最小的。

求代码支持 请各位大侠帮帮忙

------解决方案--------------------
select id from table where id>当前ID limit 0,1;
select id from table where id------解决方案--------------------
select id from table where id>当前ID order by id asc limit 1; //下一条
select id from table where id
接下来就很简单了吧。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template