Sicher dass das PHP ist? Ich kenne weder loop {} noch set $var; in PHP. Mein Vorschlag: PHP-Code: <div align="center"> <?php $bild=1; while(file_exists('img/hoch1-'.$bild.'.JPG')) { echo '<a href="img/hoch1-'.$bild.'.JPG"><img src="img/hoch1-'.$bild.'.JPG" width="265" height="353" border="0"></a>'; $bild++; } ?> </div>
<div align="center"> <?php $bild=1; while(file_exists('img/hoch1-'.$bild.'.JPG')) { echo '<a href="img/hoch1-'.$bild.'.JPG"><img src="img/hoch1-'.$bild.'.JPG" width="265" height="353" border="0"></a>'; $bild++; } ?> </div>
Foren-Regeln