Server IP : 103.53.40.154 / Your IP : 3.147.86.143 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/leetcoaching.co.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel"> <div class="carousel-indicators"> <?php $sqlslide = "SELECT * FROM `tbl_slider` WHERE slider_status='Active' ORDER BY slider_order"; $runslide = mysqli_query($db, $sqlslide) or die("Query Not run"); $count = 0; while ($dataslide = mysqli_fetch_assoc($runslide)) { $active = ($count == 0) ? 'active' : ''; ?> <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="<?php echo $count; ?>" class="<?php echo $active; ?>" aria-current="<?php echo $active; ?>" aria-label="Slide <?php echo $count + 1; ?>"></button> <?php $count++; } ?> </div> <div class="carousel-inner"> <?php $count = 0; mysqli_data_seek($runslide, 0); // Reset the result pointer to the beginning while ($dataslide = mysqli_fetch_assoc($runslide)) { $active = ($count == 0) ? 'active' : ''; ?> <div class="carousel-item <?php echo $active; ?>"> <img src="admin/images/<?php echo $dataslide['image']; ?>" class="d-block w-100" alt="Slide <?php echo $count + 1; ?>"> </div> <?php $count++; } ?> </div> <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </button> <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </button> </div>