I am trying to do my bootstrap carousel dynamic, so I put php code in the href so the URL can be updated without need to get into the code, but when I put the php code it only shows the image who has the class=active, so if I do clic in "next" it appears the carousel without image, but if I do "Inspect element" in the browser the image is there.
Here is my code, Hope you can help me.
<div id="ContieneCarousel">
<div id="myCarousel" class="carousel slide" Data-Interval="7000">
<ol class="carousel-indicators">
<li data-target = "#myCarousel" data-slide-to = "0" class="active"></li>
<li data-target = "#myCarousel" data-slide-to = "1"></li>
<li data-target = "#myCarousel" data-slide-to = "1"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<?php echo "<a href='".$row['url']."'>" ?><img src="_admin/uploads/banner1.jpg" title="MM1" alt="MM1" class="img-responsive" /><?php "</a>"; ?>
</div>
<div class="item">
<a href=""><img src="_admin/uploads/banner2.jpg" title="MM1" alt="MM1" class="img-responsive" /></a>
</div>
<div class="item">
<a href=""><img src="_admin/uploads/banner3.jpg" title="MM1" alt="MM1" class="img-responsive" /></a>
</div>
</div>
<a class="carousel-control left" href="#myCarousel" data-slide = "prev">
<span class="icon-prev"></span>
</a>
<a class="carousel-control right" href="#myCarousel" data-slide = "next">
<span class="icon-next"></span>
</a>
</div>
</div>