[Solved] Problem on Displaying Page Numbers...
Posted: Thu Apr 01, 2004 2:14 am
Hi to all Concerned Programmers!
hirs my code:
Admin Edit: Removed bold tags and added tags to code.[/size][/color]
What happen to my code is that it displays all the page number. I want to display only the the first three page numbers and the last three page numbers.
Thanks!
hirs my code:
Admin Edit: Removed bold tags and added
Code: Select all
Code: Select all
$numPage = $num_record / 30;
print"<td width="800">PAGE : ";
for($page = 0 ; $page <= $numPage ; $page ++){
$tempbegin1= $page * 30;
$pageNum = $page + 1;
print"<a href="$PHP_SELF?tempbegin=$tempbegin1" class="page">$pageNum </a>";
}Thanks!