"; //// if our variable $back is equal to 0 or more then only we will display the link to move back //////// if($back >=0) { print ""; } //////////////// Let us display the page links at center. We will not display the current page as a link /////////// echo ""; $i=0; $l=1; if ($count != "0") { echo "Page ";} for($i=0;$i < $count;$i=$i+$limit){ if($i <> $eu){ echo "$l "; } else { echo "$l";} /// Current page is not displayed as link and given font color red $l=$l+1; } echo ""; ///////////// If we are not in the last page then Next link will be displayed. Here we check that ///// if($this < $count) { print "";} echo ""; ?>