Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page Numbering [Links]

    I have the tables all set up to organize my graphics.
    now the code that numbers all the pages at the bottom (ex. PREV 1 2 3 NEXT)

    so, I have my links set up like "index2.php?page=[enter page here]"

    so for the numbering system I tried to do it like this -> index2.php?page=graphics/wallpaper.php?screen=

    // page numbering links now
    for ($i = 0; $i < $pages; $i++) {
    $url = "index2.php?page=graphics/wallpaper.php?screen=" . $i;
    $j = $i + 1;
    echo " <a href=\"$url\">$j</a> ";
    }

    Now the layout is coming up perfectly, but none of the content with it.

    you'll see what I mean -> http://www.colouredcandy.net/index2....hics/wallpaper

  • #2
    Super Moderator guelphdad's Avatar
    Join Date
    Mar 2006
    Location
    St. Catharines, Ontario Canada
    Posts
    2,634
    Thanks
    4
    Thanked 148 Times in 139 Posts
    this is a php question. search php and pagination and you will find out how to do it well.

  • #3
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ive been looking and I can't find anything that relates to my own issue, or gives me some sort of solution's... I just need to know the proper way of linking it so it'll work.

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    The page is unavailable. You'll need to up the contrast on you're text though, I can't read any of them >.<

    Check my sig, I've posted a PHP5 pagination object which you can use. There's a link in there to a PHP4 version that firepages wrote awhile ago. There is a zip a few posts down with a download (packaged in with arrays and resultsets), examples of how to create pagination callbacks and limiting sql callbacks. What you use depends on how you're getting the images in the first place.
    You can PM me with any questions regarding how you would implement it with you're code (remember to give you're code too).
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •