-1
I am creating a Carousel via bootstrap. The problem is that my div: <div class="carousel-inner">
is empty with ::after
.
Below follows my code:
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<?php
$i = 0;
while ($linha = $stmt->fetch(PDO::FETCH_ASSOC)) { ?>
<li data-target="#carouselExampleIndicators" data-slide-to="<?php echo $i?>"></li>
<?php $i = $i + 1; }?>
</ol>
<div class="carousel-inner">
<?php while ($linha = $stmt->fetch(PDO::FETCH_ASSOC)) { ?>
<div class="carousel-item">
<img class="d-block w-100" src="UPLOAD/<?PHP echo $linha['imagem']?>" alt="First slide">
</div>
<?php }?>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
[![insert image description here][2][2]