Jump to content

Question about descending pages.


pojr

Recommended Posts

One way:

 

You need to have two queries... one query that will get the total number of posts for the said subject and the other that will fetch the posts within a cetain limit... (SQL Stuff: using LIMIT).

 

The key here is that you will specify the pages (to be extended) basing on the allowed number of posts per page against the total number of posts. From these, you will get the parameters to be passed along when specifying your LIMIT in your query.

 

hope it helps :-)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.