include 'head.php'; require('config/skrypty.php'); include 'top1.php'; require('config/dbconect.php'); $zapytanie="SELECT * FROM galerie ORDER BY id DESC"; require ('config/sql_querry.php'); $j=0; while ($row = mysql_fetch_array($rezultat)) { $j++; $tytul=$row[nazwa]; $tytul=wyczysc($tytul); $naglowek=$row[opis]; $naglowek=wyczysc($naglowek); $nag[$j]=$naglowek; $thumb=$row[thumb]; $thumb=wyczysc($thumb); $thumb=$tytul."/".$thumb."m.jpg"; $th[$j]=$thumb; $id=$row[id]; $idt[$j]=$id; } $reszta= $j % 3; $ilew = ($j-$reszta)/3; $sp=3-$reszta; echo "