<div class="faq-sec">
    <div class="container">
        <div class="tt-bx">
            <div class="tt">Know More From <span>FAQs</span></div>
            <p>Unlock the insights! Explore our FAQs to learn more about our diabetic-friendly offerings. Find answers to common questions and discover healthier choices today!</p>
        </div>
        <div class="clearfix"></div>
        <div class="accordion wow fadeInUp" id="accordionExample">
        <?php  $i = 1;

$faq_sql =mysqli_query($GLOBALS['dbconn'],"select answer, slno, question from faq_tbl where category_id='' order by slno ASC");

while($faq_res=mysqli_fetch_array($faq_sql)){ ?>
            <div class="accordion-item">
                <div class="accordion-header" id="heading_<?=$faq_res['slno'];?>">
                    <span class="accordion-button <?= $i!=1 ? 'collapsed': '' ?>" role="button" data-bs-toggle="collapse" data-bs-target="#faq_<?=$faq_res['slno'];?>" aria-expanded="true" aria-controls="heading_<?=$faq_res['slno'];?>"><?=str_ireplace('{companyName}',$admin_res['companyName'],$faq_res['question']);?>
                    </span>
                </div>
                <div id="faq_<?=$faq_res['slno'];?>" class="accordion-collapse collapse <?= $i==1 ? 'show': '' ?>" aria-labelledby="heading_<?=$faq_res['slno'];?>" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p><?=str_ireplace('{companyName}',$admin_res['companyName'],$faq_res['answer']);?></p>
                    </div>
                </div>
            </div>
            <?php $i++; } ?>
       
        </div>
    </div>

</div>