i mam taki kodzik: (gdy dzieli mi na strony to nie dzieli mi informacji tylko na dole pokazuje się 1 2 > >> >| jak klikne na 2 to mi się pokazuje to samo co na 1 :/)
<? echo '<LINK REL="stylesheet" HREF="style.css" TYPE="text/css"> <table border=0 cellspacing=0 cellpadding=0 width=100% align=center>'; include("szuk.php"); $firstElement = $file[0]; foreach($filmiki as $filmy) { if($_GET['zobacz'] == ""){ require_once('Pager.class.php'); $totalRecords = $explodeFirstElement[0]; try{ $pager = new Pager('idPagera'); $pager->SetTotalRecords($totalRecords); $pager->SetRecordsPerPage(10); $pager->SetPagesPerNav(5); $pag = $pager->Render(); $indexStart = $pager->GetIndexRecordStart(); $indexEnd = $pager->GetIndexRecordEnd(); } catch (Exception $e) { } for ($i=$indexStart; $i<=$indexEnd;$i++) $numer = $podziel[0]; echo '<tr> <td width=180 align=center><a href="?zobacz='.$numer.'"><img src="'.$podziel[3].'" width=120 height=90 border=0></a></td><td width=100% align=left valign=top><a href="?zobacz='.$numer.'">'.$podziel[1].'</a><br>Data dodania: '.$podziel[4].'<br>Czas: '.$podziel[5].' min<br> Dodał: Szmerak</td> </tr><br>'; } } foreach($filmiki as $filmy) { for($x=0; $x<1; $x++){ $akcja = $podziel[0]; if($_GET['zobacz'] == "$akcja"){ echo '<center>Nazwa: '.$podziel[1].'<br>'.$podziel[2].'<br><a href="index.php">Powrót</a></center>'; } } } ?>
Wiem że robię gdzieś błąd tylko nie wiem gdzie :/