View Full Version : Page Numbering [Links]

12-07-2008, 01:47 PM
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.php?page=graphics/wallpaper

12-07-2008, 03:01 PM
this is a php question. search php and pagination and you will find out how to do it well.

12-07-2008, 04:08 PM
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.

12-07-2008, 11:03 PM
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).