1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Rep Power

    display only 10 posts on the page


    i have a guestbook written in python with xml. i want to display only the last 10 posts on the page and wants a link to show the next 10 post???

    any suggestions??

  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Hull, UK
    Rep Power
    This really depends on how your script is working but usually you would set it up so that it passes the current page number to the CGI script in the query string. This would make a sample link look something like:

    <a href="display.cgi?page=0">Next Page</a>
    In your case this would make page:
    1 display 01 to 10
    2 display 11 to 20
    3 display 21 to 30

    But, without seeing your code its hard to give much more advice on the matter. So, my suggestion would be to zip your guestbook program and attach it to this thread .

    Hope this helps,

    Last edited by netytan; October 21st, 2004 at 08:47 AM.
    programming language development: www.netytan.com Hula

IMN logo majestic logo threadwatch logo seochat tools logo