rusbb Posted June 8, 2007 Author Share Posted June 8, 2007 hey this seems to work, but this means that some of the modrewrite wont work... // Checking whether all arrows are required if ($page != 1) { // modrewrite support if ($chpu == 1) { $pervpage = "<span> <a href=\"{$path}portfolio/{$cat}page_".($page - 1).".html\" style=\"font-weight: normal;text-decoration: underline;\"> << Previous </a></span>"; } else { $pervpage = "<span> <a href= {$path}index.php?do=portfolio&{$cat}page=". ($page - 1)." style=\"font-weight: normal;text-decoration: underline;\"> << Previous </a></span>"; } if ($page != $total && $total !=0) { $nextpage = "<span> <a href= {$path}index.php?do=portfolio&{$cat}page=". ($page + 1)." style=\"font-weight: normal;text-decoration: underline;\"> Next B>> </a></span>"; } else { $nextpage = '<span> Next >> </span>'; } // Checking whether forward arrows are requires } elseif ($page != $total && $total !=0) { echo $page; // modrewrite support if ($chpu == 1) { $nextpage = "<span> <a href=\"{$path}portfolio/{$cat}page_".($page + 1).".html\" style=\"font-weight: normal;text-decoration: underline;\"> Next >> </a></span>"; } else { $nextpage = "<span> <a href= {$path}index.php?do=portfolio&{$cat}page=". ($page + 1)." style=\"font-weight: normal;text-decoration: underline;\"> Next A>> </a></span>"; } if ($page == 1) { $pervpage = '<span> << Previous </span>'; } } // Menu display $nav_menu = '<div class="link_nav">' .$pervpage. ' ' .$nextpage. '</div>'; // If no ID then display navigation menu if(empty($pro_id)) return $nav_menu; } Quote Link to comment https://forums.phpfreaks.com/topic/54706-previous-next-page-navigation-problem/page/2/#findComment-270654 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.