Hi there,
I have the following issue. I am working on a Paginator script (that i got from a tutorial on a website). With limited php skills I am still trying to work out a way of assigning a <span> tag and a class to 'Current Page' number.
Can anyone here suggest a solution? (and a small explanation).
Heres the script I am using -
<?
$numofpages = $totalrows / $limit;
for($i = 1; $i <= $numofpages; $i++){
if($i == $page){
echo($i." ");
}else{
echo("<a href=\"$PHP_SELF?page=$i\">$i</a>");
}
}
if(($totalrows % $limit) != 0){
if($i == $page){
echo($i." ");
}else{
echo("<a href=\"$PHP_SELF?page=$i\">$i</a> ");
}
}
mysql_free_result($result);
?>