6 Ps in Podcast Date: Thursday 26 June 2008
|
| " ?> |
Results =$first?> - =$last?> of =$numrows?> | Page =$current?> of =$total?> |
message; ?>
|
|
if ($page != 0) { // Don't show back link if current page is first page. $back_page = $page - $limit; echo("back \n");} for ($i=1; $i <= $pages; $i++) // loop through each page and give link to it. { $ppage = $limit*($i - 1); if ($ppage == $page){ echo("$i\n");} // If current page don't give link, just text. else{ echo("$i \n");} } if (!((($page+$limit) / $limit) >= $pages) && $pages != 1) { // If last page don't give next link. $next_page = $page + $limit; echo(" next");} ?>