The problem is just logical... I'm trying to make a photo gallery getting the images url from a database... The problem is when I'm rendering in HTML. I'm using bootstrap to make the layout. Every row has 3 images, when I make a while to render the images I can't figure out how to render 3 images by row using just a loop.
I'm using PHP, but written some draft code just to be easier to explain.
I`m trying to do something like that:
for(result in array){
<div class="row tattos-row">
<div class="col-sm">
<img class="img-portifolio" src="result[URL]">
</div>
</div>
}
I'm expectecting this result:
<div class="row tattos-row">
<div class="col-sm">
<img class="img-portifolio" src="url_1">
</div>
<div class="col-sm">
<img class="img-portifolio" src="url_2">
</div>
<div class="col-sm">
<img class="img-portifolio" src="url_3">
</div>
</div>
<div class="row tattos-row">
<div class="col-sm">
<img class="img-portifolio" src="url_4">
</div>
<div class="col-sm">
<img class="img-portifolio" src="url_5">
</div>
<div class="col-sm">
<img class="img-portifolio" src="url_6">
</div>
</div>