View Single Post
  #1  
Old 03-24-2010, 05:01 AM
redheadturkey redheadturkey is offline
Senior Member
 
Join Date: Jan 2010
Posts: 136
Gender: Female
Credits: 10,447
redheadturkey is on a distinguished road
Default pagination for my adopts

This is so simple I know, but I can't seem to find exactly where to insert the code for this on myadopts.php --- I have a lot of adoptables and really need to have many pages.

I ganked the code ( two parts ) for the memberlist from the profile page, but not getting this inserted right:


Code:
$article_content = $article_content."<br>";


if($currentpage > 1) {
$newpage = $currentpage - 1;
$article_content = $article_content."<b><a href='myadopts.php?page=".$newpage."'><img src='templates/icons/prev.gif' border=0> Previous Page</a></b> ";
}
else{
$article_content = $article_content."<b><img src='templates/icons/prev.gif' border=0> Previous Page</b> ";
}
if($currentpage < $totalpages) {
$newpage = $currentpage + 1;
$article_content = $article_content." ::  <b><a href='myadopts.php?page=".$newpage."'>Next Page <img src='templates/icons/next.gif' border=0></a></b> ";
}
else{
$article_content = $article_content." ::  <b>Next Page <img src='templates/icons/next.gif' border=0></b>";

}

thanks!
Reply With Quote