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

    Join Date
    May 2004
    Posts
    49
    Rep Power
    10

    display only 10 posts on the page


    hi,

    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??

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

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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
    etc.

    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,

    Mark.
    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