($tel-1))$p=0; $i = $p-1; echo ''; echo '  '; $i = $p+1; echo ''; echo '
'; // sorteren: for($i = 0; $i<($tel-1); $i++) for($j = $i + 1; $j<$tel; $j++) if($fotos[$i]>$fotos[$j]){ $t = $fotos[$i]; $fotos[$i] = $fotos[$j]; $fotos[$j] = $t; } echo ''; // als tekst/naam.txt bestaat, maak onderschrift $tkst = $text.substr_replace($fotos[$p],'txt',-3); if(file_exists($tkst)){ echo '

'; $fp = fopen($tkst,"r"); do{ $t = fgets($fp); echo $t; }while($t>""); fclose($fp); } ?>