How would that work in the following code? It doesn't make sense, it's like saying: if (remainder of $num/$limit), so it could be like if (1) which doesn't sound right. I'm used to IF 7 is equal or not to something. What is it asking?
$pages=intval($num/$limit);
if ($num%$limit) {
$pages++;}
for ($i = 1; $i <= $pages; $i++) {
$newoffset = $limit*($i-1);
if ($newoffset == $offset) {
print "$i \n";
}
else {
print "<a href=\"subcat.php?subcat=$subcat&CatSelect=$CatSelect&offset=$newoffset&limit=$resultlimit\">$i</a> \n";
}}