letter' ORDER BY thema"; $resultaat2 = mysql_query($sql2); while($record2=mysql_fetch_object($resultaat2)) { $groep = '1'; } if ($groep == '0') { echo ""; echo ""; echo ""; echo ""; echo "
 
"; echo ""; echo ""; echo "
Met deze letter hebben we nog geen thema.
 
"; } if ($groep == '1') { echo "
"; echo ""; echo ""; echo ""; echo "
 
"; echo ""; echo ""; echo "
"; $sql3 = "SELECT * FROM groepen WHERE letter = '$record->letter' ORDER BY thema"; $resultaat3 = mysql_query($sql3); while($record3=mysql_fetch_object($resultaat3)) { echo "
  • $record3->thema
    "; } echo "
  •  
    "; } $nummer++; if ($nummer > $plaatjes) { $nummer = 1; } } ?>