I'm trying to link a database with a Bootstrap carousel. The carousel code I am using is the basic one, which is on the Bootstrap documentation page .
So far I've only been able to run the carousel with images that I have in a folder but I have not known how to do it with image paths that are saved in the database.
This is the code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<section class="section-white">
<div class="container">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="http://lorempixel.com/800/300/people" />
<div class="carousel-caption">
<h2>Ofertas Fónix</h2>
</div>
</div>
<div class="item">
<img src="http://lorempixel.com/800/300/abstract" />
<div class="carousel-caption">
<h2>Ofertas Fónix</h2>
</div>
</div>
<div class="item">
<img src="http://lorempixel.com/800/300/nature" />
<div class="carousel-caption">
<h2>Ofertas Fónix</h2>
</div>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
</section>