",$record->omschrijving); echo ""; echo ""; echo ""; echo ""; echo "
 
"; echo "$record->activiteit

$omschrijving"; if ($omschrijving != "") { echo "

"; } $sql2 = "SELECT * FROM documenten WHERE id2 = '$record->id' AND type='Afbeelding'"; $resultaat2 = mysql_query($sql2); while($record2=mysql_fetch_object($resultaat2)) { echo " "; $bestaat = 1; } if ($bestaat == '1') { echo "

"; } $nummer = 1; $sql2 = "SELECT * FROM documenten WHERE id2 = '$record->id' AND type='Word'"; $resultaat2 = mysql_query($sql2); while($record2=mysql_fetch_object($resultaat2)) { echo "Word document $nummer
"; $nummer++; $bestaat = 2; } if ($bestaat == '2') { echo "
"; } $nummer = 1; $sql2 = "SELECT * FROM documenten WHERE id2 = '$record->id' AND type= 'PDF'"; $resultaat2 = mysql_query($sql2); while($record2=mysql_fetch_object($resultaat2)) { echo "PDF document $nummer
"; $nummer++; } echo "
 
"; $nummer2++; if ($nummer2 > $plaatjes) { $nummer2 = 1; } } ?>