Home  >  Article  >  CMS Tutorial  >  How to paginate the phpcms list page

How to paginate the phpcms list page

angryTom
angryTomOriginal
2020-02-19 12:46:343721browse

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}

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}

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!

Statement:
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