0
I want to create an image gallery using bootstrap Carousel, when saving the multiple images in db they go to the same column "photos" and are separated by "." (foto1.jpg,foto2.jpg,foto3.jpg) Now I wish to show you at with the Carousel.
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="uploads/<?php echo $foto_thumb; ?>" width="560px" alt="...">
<div class="carousel-caption">
</div>
</div>
<div class="item">
<img src="uploads/image.php" width="560px" alt="...">
<div class="carousel-caption">
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
Explain further the problem. The photos are separated by comma, and Voce want to display individually?
– LocalHost
id field and photos field in the photos field has several separated by "," (foto1.jpg,foto2.jpg)now I want to exbir all of them in the photoCarousel 1.jpg NEXT foto2.jpg ...
– Paulo