=$counter AND $counter>=$end) { $final = explode("||", $array[$counter]); $final[3]=nl2br($final[3]); $autor=$final[0]; $email=$final[1]; $temat=$final[2]; $text=$final[3]; $data=$final[4]; $ip=$final[5]; if($data=="") { break; } $cialo=$wyglad; $cialo = str_replace("{autor}","$autor",$cialo); $cialo = str_replace("{email}","$email",$cialo); $cialo = str_replace("{temat}","$temat",$cialo); $cialo = str_replace("{text}","$text",$cialo); $cialo = str_replace("{data}","$data",$cialo); $cialo = str_replace("{ip}","$ip",$cialo); $cialo = str_replace("{topic}","$temat",$cialo); echo("$cialo"); $liczba++; if($liczba=="$limit") { break; } $counter--; } if($ilosc2==0 OR $limit==0) { echo ""; } else { $stron = $ilosc2/$limit; } $stron=ceil($stron); $start=$ilosc2; $counterx=$stron; $wys=1; echo("
"); echo ("Seite "); while($counterx>=1) { $end=$start-$limit; if($st==$wys) { echo("$wys "); } else { echo("$wys "); } $start = $start-$limit; $counterx--; $wys++; } echo("
"); ?>