Hi..
I have a top site list which I download from somewhere and that couldn't split the pages earlier.
I've added codes to split pages 50-50. But I have a problem like that:
At each an single page, ranking is 1 to 50. I mean it wouldn't change to 51...100 in page 2.
Here is the page: http://www.harabe.net/toplist/index3.php
And here is the necessary codes:
<?php
if (!@$sayfa) { $sayfa=1;}
$alt=($sayfa - 1) * $limit;
$q=mysql_query("SELECT * from toplista WHERE active ='y'");
$w=mysql_num_rows($q);
if($sort == ""){ $sort = "wejsica"; }
$listele = mysql_query("SELECT * FROM toplista ORDER BY $sort DESC LIMIT $alt, $limit");
$suz = mysql_num_rows($listele);
while ($s = mysql_fetch_array($q))
while ($tab = mysql_fetch_row($listele)) for($i=0;$i<count($suz);$i++){
$rank = $rank + 1;
if($function['rating'] == "1"){
if($tab[11] == "0"){ $ocena = $lang['notyet']; $glosow = $lang['notyet']; } else { $ocena = $tab[10] / $tab[11]; $ocena = round($ocena, 2); $glosow = $tab[11]; }
Please help me out :bemused: [/B]