Hi can any see why when i click next nothing happens
[code=php]
function make_user_page_nums($total_results, $print_query, $page_name, $results_per_page, $page, $max_pages_to_show) {
echo “Pages: “;
/* PREV LINK: print a Prev link, if the page number is not 1 */
if($page != 1) {
$pageprev = $page – 1;
echo “<a href=””.$page_name.$print_query.”page=”.$pageprev.””><Prev</a> “;
}
/* get the total number of pages that are needed */
$showpages = round($max_pages_to_show/2);
$numofpages = $total_results/$results_per_page;
if ($numofpages > $showpages ) {
$startpage = $page – $showpages ;
} else {
$startpage = 0;
}
if ($startpage < 0){
$startpage = 0;
}
if ($numofpages > $showpages ) {
$endpage = $page + $showpages;
} else {
$endpage = $showpages;
}
if ($endpage > $numofpages){
$endpage = $numofpages;
}
/* loop through the page numbers and print them out */
for($i = $startpage; $i < $endpage; $i++) {
/* if the page number in the loop is not the same as the page were on, make it a link */
$real_page = $i + 1;
if ($real_page!=$page){
echo ” <a href=””.$page_name.$print_query.”page=”.$real_page.””>”.$real_page.”</a> “;
/* otherwise, if the loop page number is the same as the page were on, do not make it a link, but rather just print it out */
} else {
echo “<b>”.$real_page.”</b>”;
}
}
/* NEXT LINK -If the totalrows – $results_per_page * $page is > 0 (meaning there is a remainder), print the Next button. */
if(($total_results-($results_per_page*$page)) > 0){
$pagenext = $page + 1;
echo ” <a href=””.$page_name.$print_query.”page=”.$pagenext.””>Next ></a> “;
}
}
?>
just whenever i click on anything it dont work?
Thanks Adam