<h6 class="text-center text-uppercase">PROMOSI LENGKAP <?php echo ftab("link_masukbo", "web_setting", "link_masukbo"); ?></h6>
    <hr class="w-75 d-block mx-auto">

<div class="my-3">

    <div class="row g-2">

        <?php
            $spromo = "SELECT * FROM promosi_blog ORDER BY promo_tgl DESC";
            $qpromo = mysqli_query($data, $spromo);

            $pro1 = 1;
            $pro2 = 1;
            $pro3 = 1;
            if(mysqli_num_rows($qpromo) > 0) {
                while($fpromo = mysqli_fetch_assoc($qpromo)) {
                    $imgpromo = $fpromo['gambar_promo'];
                    $promo = $fpromo['promo_content'];

                    echo '<div class="col-lg-9 mb-3">
                    <img src="'.$imgpromo.'" class="w-100" alt="promosi togelonline '.$pro1++.' blog livedraw prediksi hk sgp sdy lengkap">
                    <div class="collapse" id="promo-togelonline-'.$pro2++.'">
                        <div class="bg-light text-dark p-2">
                            '.html_entity_decode($promo).'
                        </div>
                    </div>
            </div>

            <div class="col-lg-3 mb-3">
                    <div class="d-grid mt-sm-4">
                    <button type="button" data-bs-toggle="collapse" data-bs-target="#promo-togelonline-'.$pro3++.'" class="btn fw-bold bg-gradient my-2 btn-dark"><i class="fas fa-coins"></i> INFO LENGKAP</button>
                    <a href="'.ftab("link_daftarbo", "web_setting", "link_daftarbo").'" target="_blank" class="btn fw-bold bg-gradient my-2 btn-light"><i class="fas fa-user"></i> DAFTAR</a>
                    </div>
            </div>
            
            <div class="col-lg-12">
                   &nbsp;
            </div>';

                }


            } else {
                echo 'Promo tidak tersedia!!';
            }

        ?>

    </div>

</div>
