Jump to content

NEED HELP NEXT - PREVIOUS PAGE


shorty3

Recommended Posts

i have this code:

<?



$forum_count = 3;

function index_navigation($index, $count, $num) {
$forum = $_GET['forum'];
if ($index != 0) {
	print "<a href=\"left.php?forum=".$forum."&forum_look=" . ($index - $count) . "\">Previous</a> ";
}
if ($num == $count) {
	print " <a href=\"left.php?forum=".$forum."&forum_look=" . ($index + $count) . "\">Next</a>";
}


}
if (! isset($forum_look) ) {
			$forum_look = 0;
		}
?>

 

 

 

page goes here with this at the bottom

 

<?php
index_navigation($forum_look, $forum_count, $num);
?>

 

Its currently Previous And Next But i Want it to show pages like --- Previous 1 2 3 4 (etc) Next

Link to comment
https://forums.phpfreaks.com/topic/172030-need-help-next-previous-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.