Mam problem z napisaniem skryptu, co tutaj jest nie tak:
$recordsCount = $row[0];//pobranie liczby rekordów try{ $pager = new Pager('idPagera','index.html'); $pager->SetTotalRecords($recordsCount); $pager->Make(true); $pag = $pager->Render(); $start = $pager->GetIndexRecordStart(); $end = $pager->GetIndexRecordEnd(); } catch (Exception $e) { } $zapytanie = $db->query('SELECT * FROM news WHERE id ORDER by id DESC limit '.$start.','.($end - $start + 1); while ($wynik = $zapytanie->fetch_assoc()) { echo' <li> <h2 class="title"><em><img src="images/news.png" alt="" width="121" height="137" class="alignleft" /></em>'.$wynik['title'].'></h2> <p>'.$wynik['content'].'</p> </li>'; }