Grow your CSS skills. Land your dream job.

How to create paged content?

  • # March 7, 2010 at 6:27 am

    I don’t know if this is a CSS, PHP, javascript, or cms problem. How do you code a page so that after a certain amount of content, there is a page number tab system kind of thing at the bottom where it also has the page number as well as a ‘previous’ and next ‘button’ ?

    Rob
    # March 7, 2010 at 8:01 am

    You need to be looking for "Pagination" :)

    http://www.phpfreaks.com/tutorial/basic-pagination

    That’s one for you to have a look at to start with :)

    # March 7, 2010 at 9:04 am

    Thank you, this helped very much.

    My only question would be when in the turtorial, he mentions "But for the purposes of this tutorial I will use a table called ‘numbers’ and it will have two columns one called ‘number’ type int and the other one called ‘id’ type int, auto-incremented."

    When he says it’s called numbers, does he mean the table has a class or id? And would would either change how it’s written in the script? He also names his 2 columns number and id. What if you have three columns? How does that change the code?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".