Chodzi o to ze na 1 stronie wyswietla sie 10 wyników, na 2 jest 20 a na ktorejs tam jest nawet 30, i niektore sie powtarzaja.
Niżej zamieszczam kod, moze ktos mi powie co w nim jest nie tak?

<?php $typ = '`typ` = ' . (int) $_GET['typ']; }else{ $typ = "((`typ` >= 1 and `typ` <= 4) or (typ = '15') or (typ = '16') or (typ = '17'))"; } //$typ = (isset($_GET['typ']) ? '`typ` = ' . (int) $_GET['typ'] : '((`typ` >= 1 and `typ` <= 4) or (typ = '15'))'); $order = ''; if ($_GET['top'] == 1) { $order = ' order by `ocena` desc'; } elseif ($_GET['last'] == 1) { $order = ' order by `added` desc'; } // ilosć trafień $res = mysql_query('select * from `stuff` where ' . $typ . $cat . $order . ' order by added desc limit ' . ((int) $_GET['currentpage'] * 1) . ', ' . ((int) $_GET['currentpage'] * 10 + 10)); if ($hits == 0) { } else { { if($row['added']>0) else $date = (string) ''; $comments_count = (int) 0; if($comments) { $comments_count = $record['CommentsCount']; } if($row['miniaturka']!='') { $image = sprintf('<img src="%s" alt="%s" class="icon"align="right"width="160px"height="120px"border="2" />', $row['miniaturka'], $row['title']); } else { $image = ''; } else $cat = (string) ''; printf('<table width="420" bgcolor="#F3F3F3" style="margin-bottom:12px;font-family:verdana;font-size:12px;"><tr><td style="text-align:left; clear:both; padding:0 4px;">%s <b>%s</b><a href="index.php?page=display&id=%d" class="stufflink"style="font-weight:bold;">%s</a><br />%s<img src="ikonki/wykres.jpg">Ocena: %d<br /><img src="ikonki/wykres.gif">Wyswietlen: %d<br /><img src="ikonki/trabka.gif">Komentarzy: %d<br /><img src="ikonki/info.gif">Zasugerował: %s</td></tr></table>', $image, $cat, $row['id'], $row['tytul'], $date, $row['ocena'], $row['counter'], $comments_count, $row['login']); } } /********* NUMEROWANIE *********/ if ($hits !== 0) { { print("<a href="index.php?page=list1¤tpage=" . $i . "&cat=" . $_GET['cat'] . "">" . ($i+1) . "</a> "); } } /*******************************/ ?>