2
I am exercising my knowledge in PHP and I have a question. How do I display a text after N repetitions of the DO loop?
<?php do { ?>
<div class="fotos">
<h1><?php echo $titulo_da_foto; ?></h1>
<img src="upload/<?php echo $arquivo; ?>" />
</div>
<?php } while ($rsVarejo > 0); ?>
In this case, I would like to hide the background of the class photos in the 4th repetition, some suggestion?
Do you want every four photos to hide and re-show in the next three, and re-hide, or permanently hide from the fourth? It would be good for you for an example of the desired output in the question.
– Bacco