PHP echo images in for loop Help....?

BEnno

New member
Hi I have 5 lines of the same image and im trying to reduce code and simply put the 5 lines into a for loop. so i only have to state the line once.


THIS IS THE LINE....

<img src="<?php echo $url; ?><?php echo rand($min,$max);?>.jpg" class="RandomPhoto"><br>

BUT I WANT IT IN A PHP FOR LOOP of 5 loop

therefore the line needs to "ËCHOED" as such

echo <img src="<?php echo $url; ?><?php echo rand($min,$max);?>.jpg" class="RandomPhoto"><br>

and this line above doesnt compile cos of the quotes and additional echo's

can someone fix this line so it can be echo correctly?? thanks
 
Back
Top