Witam , Czy znacie jakies praktyczne i ladnie wygladajace paginatory? ja znalazlem w necie cos takiego
Paginator
tylko nie wiem jak dopasowac go do mojego kodu:(. Dodam jeszcze ze pare zmiennych przesylam getem do innych podstron.
include('paginator.class.php'); include('conect.php'); $sql= 'SELECT COUNT (*) FROM objekty'; $pages = new Paginator; $pages->items_total = $num_rows[0]; $pages->mid_range = 9; $pages->paginate(); . $pages->display_items_per_page() ; // *** Get records. List by Email, then by time in ascending order. //$limitClause = ?LIMIT $startRecord, $numRecsPerPage?; $sql = 'SELECT * FROM demoty ORDER BY id '.$pages->limit.' '; if (!$result) { } else { if ($numRecords >=1) { // *** Display the user list. $tableRow = ?; $id = $row['id']; $email = $row['podpis']; $time = $row['name']; $tableRow .= ''.$email.' Delete | Edit | Transfer to Unsubscribe '; } $tableHeader = ' EMAILTIMEACTION '; } else { } }