Posts by TTGuy • 65 points
3 posts
-
0
votes2
answers224
viewsQ: Display content (only once) after X repetitions in PHP
I have the following code: <?php do { ?> <div>Área que desejo repetição</div> <?php } ?> I would like an extra piece of content to be displayed after 2 reps. Only after 2…
-
2
votes4
answers349
viewsQ: Every N repetitions display X in PHP
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…
-
4
votes3
answers3112
viewsQ: How to check if a file exists in several different folders?
I need a PHP script that checks if a file exists in a folder, if it doesn’t exist it checks in the next one and so on... I don’t play much with PHP so I’m a little lost. I’ve tried to do with switch…