I want to limit the registered members list to 15 per page. The problem i have is the URL is
http://teampof.com/index.php?modules=userlist how would i make that work? Here is the code:
// Build Previous Link
if($page > 1){
$prev = ($page - 1);
echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?page=$prev\"><font size=\"2\">Previous</font></a> ";
}
for($i = 1; $i <= $total_pages; $i++){
if(($page) == $i){
echo "$i ";
} else {
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$i\"><font size=\"2\">$i</font></a> ";
}
}
// Build Next Link
if($page < $total_pages){
$next = ($page + 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next\"><font size=\"2\">Next</font></a>";
}
echo "</center>";
Im having trouble with the navigation links at the bottom. Thanks! (the code is from phpfreaks.com)
The $_SERVER['PHP_SELF'] shows up as index.php.