";?>
     
 

   
  "; $i++; } echo""; $limitb=4*(1+$t); $sql_select2 ="SELECT * FROM fotogallery g, fotocategorie c WHERE c.catnm='".$dat_cat['catnm']."' AND g.catid=c.catid ORDER BY g.fid LIMIT ".$limitb.",4"; $result2=mysql_query($sql_select2,$vk); $n=0; while ($n<@mysql_num_rows($result2)) { $dat2=mysql_fetch_array($result2); echo ""; $n=$n+1; } echo""; $limitc=4*(2+$t); $sql_select3 ="SELECT * FROM fotogallery g, fotocategorie c WHERE c.catnm='".$dat_cat['catnm']."' AND g.catid=c.catid ORDER BY g.fid LIMIT ".$limitc.",4"; $result3=mysql_query($sql_select3,$vk); $m=0; while ($m<@mysql_num_rows($result3)) { $dat3=mysql_fetch_array($result3); echo ""; $m=$m+1; } echo""; // Selectie maken welke afbeelding er getoond moet worden, als er op een thumb geklikt wordt wisselt de afbeelding if (isset($_GET['image'])){ $sql_select_afbgr ="SELECT * FROM fotogallery g, fotocategorie c WHERE c.catnm='".$dat_cat['catnm']."' AND g.catid=c.catid AND g.fid='".$_GET['image']."'"; }else{ $sql_select_afbgr ="SELECT * FROM fotogallery g, fotocategorie c WHERE c.catnm='".$dat_cat['catnm']."' AND g.catid=c.catid ORDER BY g.fid LIMIT 0,1"; } $result_afbgr=mysql_query($sql_select_afbgr,$vk); $dat_afbgr=mysql_fetch_array($result_afbgr); echo "
 
               
 
               
 
               
"; // vorige beeldenrij tonen echo "";?>           ";?>
 
 
".$dat_afbgr['omschr']."
 
       
  $dat_allcat[catnm]"; $p++; } ?>