/* Galeria script */ maxfoto = ".$aaa."; fotki_to = [0".$spisfotkow."] "; $bbb = 0; $Bzapyt_pliki = mysqli_query($sql,"SELECT * FROM STAJ_FOTO WHERE IDGAL = '$row_pod[6]' ORDER BY KOL DESC LIMIT 0,24 "); while ($row_fot = mysqli_fetch_row($Bzapyt_pliki)) { $bbb++; $trescRIGHT .= "
"; } if ($aaa > 24) { $trescRIGHT .= "
zobacz wszystkie miniatury
"; } } } include "top.php"; echo " "; include "bottom.php"; ob_end_flush();?>