Re: [Rewmer] Display data in a DIV
On second view, below is better, simpler approach. The foreach statement is sort of like an if statement. If there isn't an image, it won't output any of the html inside of it.
<?php foreach ($avaliable_royal_pythonsRecord['picture_1'] as $index => $upload): ?>
<div class="innercontent">
<blockquote>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>
info1 (Gems Code) : <?php echo htmlencode($upload['info1']) ?><br/>
info2 (Animal) : <?php echo htmlencode($upload['info2']) ?><br/>
info3 (Price) : <?php echo htmlencode($upload['info3']) ?><br/>
</blockquote>
</div>
<?php endforeach ?>