Cytat
<< [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] ..... >>
A chciałbym by było widać tylko np. 6 stron w obrębie tej aktywnej
Cytat
<< [5] [6] [7] [8] [9] [10] [11] >>
Oto kod :
<?php $subpage = $_GET['page']; $perPage = 10; { $subpage = (int) $_GET['subpage']; } if ($subpage < 1) { $subpage = 1; } $start = ($subpage - 1) * $perPage; $zapytanie = 'SELECT tytul FROM news ORDER BY id DESC LIMIT '.$start.', '.$perPage.''; $max = "SELECT COUNT(tytul) as max FROM news"; { { $tytul = $wiersz[tytul]; } } $prev = $subpage - 1; $next = $subpage + 1; $prevLink = 'index.php?page='.$prev; $nextLink = 'index.php?page='.$next; $ilosc_wierszy = $maxrecords['max']; if($subpage > 1) for($i=1; $i<=$stron; ++$i) { if($i==$subpage) else } if($subpage < $stron) ?>
Mógłby ktoś coś takiego wykonać ?
