Home > CMS Tutorial > PHPCMS > body text

How to paginate the phpcms list page

angryTom
Release: 2020-02-19 12:46:34
Original
3532 people have browsed it

How to paginate the phpcms list page

How to paginate the phpcms list page

Page the phpcms list page. Different versions use different implementation methods. The specific implementation is as follows:

1. phpcms2008 version implements list page paging

Related recommendations: phpcms tutorial

{get sql="select * from phpcms_content where catid=1 and status=99 order by updatetime desc" rows="10" page="$page"}
.....
{/get}
Copy after login

2. The phpcms v9 version implements list page paging

{$pages}
V9
{pc:content action="lists" catid="2" order="id DESC" num="4" page="$page" }
{/pc}
{$pages}
Copy after login

For more website construction video tutorials, you can follow the PHP Chinese website!

The above is the detailed content of How to paginate the phpcms list page. For more information, please follow other related articles on the PHP Chinese website!

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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!