Jump to content


Photo

Advanced paging


  • Please log in to reply
2 replies to this topic

#1 auris

auris
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 14 February 2004 - 06:28 PM

hi all, does anybody know how to make previous 1 2 3 next links? in macromedia forums i found a script previous-0-1-2-3next links, bu there are two problems:0 is at the beginning and next link sometimes doesn't work! here's the script:

<?php if ($pageNum_Rs1 > 0) { // Show if not first page ?> <a href="<?php printf("%s?pageNum_Rs1=%d%s", $currentPage, max(0, $pageNum_Rs1 - 1), $queryString_Rs1); ?>">Previous</a> <?php } // Show if not first page ?><?php for($i = 0; $i <= $totalPages_Rs1; $i++){ if(($pageNum_Rs1) == $i){ echo "<strong><font color=#FF0000>$i&nbsp;</font></strong>"; } else { echo "<a href=\"".$_SERVER['PHP_SELF']."?pageNum_Rs1=$i\">$i</a>&nbsp;"; } } ?> <?php if ($pageNum_Rs1 < $totalPages_Rs1) { // Show if not last page ?> <a href="<?php printf("%s?pageNum_Rs1=%d%s", $currentPage, min($totalPages_Rs1, $pageNum_Rs1 + 1), $queryString_Rs1); ?>">Next</a> <?php } // Show if not last page ?>


#2 morpheus.100

morpheus.100
  • Members
  • PipPipPip
  • Advanced Member
  • 145 posts

Posted 26 February 2004 - 11:54 PM

Several free extensions available in macromedia exchange that will write this code for you. Also a useful chapter in the manual if i remember correctly so press F12 and look in creating navigation.

#3 pearl8379

pearl8379
  • Members
  • Pip
  • Newbie
  • 4 posts
  • LocationLabuan, Malaysia

Posted 01 March 2004 - 02:33 AM

check the tutorials....i get some idea of paginating from there..well, couldnt remember the tutorial number, but i bet you'll find it :lol:

ohya...i did post a question regarding pagination in one of the forum..but i'm not sure whether you detect the question using my username...i didnt register myself that time...but using the same username though... :o

Hope that'll help...
cheers..
cheers[br][br][br]>>SMexceL SPMy2k<<




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users