





<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
  <ol class="carousel-indicators">
    <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
    <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
  </ol>
  <div class="carousel-inner">
      <?php
        $slider_sql = "SELECT * FROM slider_master" ;
        $slider_res = $config->query($slider_sql);
        while($slider = $slider_res->fetch_assoc()){
    ?>
    <div class="carousel-item <?= ($slider['slider_id'] == 1) ? 'active' : '' ; ?>">
      <img class="d-block w-100" src="assets/img/slider/<?= $slider['slider_image'] ?>" alt=" 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>
<style>

    .carousel-item img{
        height:100%;
    }
</style>