How does one paging the news list under a certain topic in the news system? -Php Tutorial

Source: Internet
Author: User
How do I paging the news list under a certain topic in the news system ?? For example, if you add an article to a list page of 0 to, how do you paging the news list under a certain topic of the news system ??
For example, if a topic contains 100 articles and 20 articles per page

Page1.htm 81-100 records
Page2.htm 61-80
Page3.htm 41-60
Page4.htm 21-40
Page5.htm 0-20

Five such list pages. If an article is added, the page is changed to six,

Page1.htm 82-101 records
Page2.htm 62-81
Page3.htm 42-61
Page4.htm 22-41
Page5.htm 2-21
Page6.htm 0-1

In this way, all list pages need to be regenerated. it doesn't matter when there are few records. if there are many records with thousands of pages, do you need to regenerate all pages when adding a new one? This will consume a lot of resources.

I don't want to use pseudo-static methods. What are some good ideas ,?




------ Solution --------------------
Page5.htm 81-100 records
Page4.htm 61-80
Page3.htm 41-60
Page2.htm 21-40
Page1.htm 0-20

In the page navigation, only the next page of the previous page and js jump are allowed.
Come on, eat tofu ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.