Looping html div using php to show image from folder
I have a folder "blah" that contains a lots of images.
I want to show all my images into my page.
Here my html code:
<div class="cp-thumb cp-masonry cp-thumbs616 masonry-brick"><img
src="blah/225cd24c144611e3b69022000a1deb4b_7.jpg" class="img_235x235" />
</div>
When I use php for loop to show all the image, it does not work:
<?php
for($i=0; $i<=10; $i++)
{
echo "<div class='cp-thumb cp-masonry cp-thumbs616 masonry-brick'><img
src='file:///C|/Users/jovine/Desktop/Food Site/Workable
Code/137dbea8144611e3895a22000a1fc66c_7.jpg'class='img_235x235'
/></div>";
}
?>
Anyone can help? Thanks
No comments:
Post a Comment