-1
<fieldset>
<legend>FOTOS</legend>
<div class="form-group">
<?php
if ($linha['foto1_bci'] && $linha['foto2_bci'] && $linha['foto3_bci'] && $linha['foto4_bci'] && $linha['foto5_bci']) { ?>
<label for="foto1_bci">Foto 1</label>
<img class="img-responsive" src="fotos/<?=$linha['foto1_bci']?>" width="500px" height="200px"></img>
<label for="foto2_bci">Foto 2</label>
<img class="img-responsive" src="fotos/<?=$linha['foto2_bci']?>" width="500px" height="200px"></img>
<label for="foto3_bci">Foto 3</label>
<img class="img-responsive" src="fotos/<?=$linha['foto3_bci']?>" width="500px" height="200px"></img>
<label for="foto4_bci">Foto 4</label>
<img class="img-responsive" src="fotos/<?=$linha['foto4_bci']?>" width="500px" height="200px"></img>
<label for="foto5_bci">Foto 5</label>
<img class="img-responsive" src="fotos/<?=$linha['foto5_bci']?>" width="500px" height="200px"></img>
<?php } ?>
</div>
</fieldset>
What is the doubt?
– Lisângelo Berti
How can I show only the images that exist? Because I only uploaded image 1 but it shows an icon as if it did not display and the name Foto2 Foto3 Foto4, I would like it not to be displayed if the image did not exist.
– Emmanuel Siqueira