Stworzylem juz sobie strone na ktorej wyswietlane so wyniki ale zapomnialem o wrzuceniu stronnicowania... Przegladajac forum znalazlem troche tematow o stronnicowaniu ale wszystkie sa dosc mocno ingerujace w moj kod i probojac ciagle sie gubie...
Czy znacie moze kod albo link do jakiegos niezbyt skaplikowanego kodu stronnicowania? Najlepiej jezeli wystarczylo by go wrzucic nad kod gotowej juz strony...
Ponizej przedstawiam fragment kodu mojej strony:
<?php $orderby = "id DESC"; } echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\">" ."<tr>" ."<td valign=\"top\">"; echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">" . "<tr>" . "<td colspan=\"0\" width=\"510\" valign=\"top\">" . "<table border=\"0\" width=\"100%\" cellspacing=\"2\" cellpadding=\"0\" background=\"theme/images/logo_00.png\">"; $result8 = $db->sql_query("SELECT id, name, save_as, numfiles, size, tracker_update, ratingsum, seeder
s, leechers, times_completed FROM torrent_torrents ORDER BY $orderby $limit"); while ($row8 = $db->sql_fetchrow($result8)) { $id = $row8["id"]; $name = $row8["name"]; $name_long = $row8["save_as"]; $name_long = $name_long[0]." - ".$name_long[1]; $numfiles = $row8["numfiles"]; $ratings = $row8["ratingsum"]; # $update = date("d.m.Y <b> H:i </b>", strtotime($update)); $seeders = $row8["seeders"]; $leechers = $row8["leechers"]; $pic_cover = "downloads/Mixtapes2/$id/$name.jpg"; $times_completed = $row8["times_completed"]; echo "<tr>" . "<td rowspan=\"2\" width=\"100\" align=\"center\"><a href=\"$pic_cover\" rel=\"lightbox\"><img border=\"0\" src=\"$pic_cover\" alt=\"$name\" width=\"90\" height=\"90\"/></a></td>" . "<td width=\"260\"><a href=\"modules.php?name=Bittorrent&file=details&id=$id\">$name_long</a></td>" . "<td rowspan=\"2\" width=\"90\" align=\"center\"><img border='0' src='images/star_tapes/star_$ratings.png' alt='Ocena: $ratings'></td>" . "<td rowspan=\"2\" width=\"60\" align=\"center\"><img src=\"images/active.png\"><br />"; if ($seeders==0 && $leechers<=5){ }elseif( ($seeders==1 && $leechers<=5) || ($seeders==0 && $leechers<=10) ){ }else{ } echo "</td>" ."</tr>" ."<tr>" ."<td valign=\"top\">Pobrano: <b>$times_completed</b> razy" ."</td>" ."</tr>" ."<tr>" ."<td colspan=\"0\"><hr width=\"95%\" noshade color=\"#FF9900\"></td>"; } echo "</td>" . "</tr>" . "</table>" ?>