<div class="faq-sec">
    <div class="container">
        <div class="tt-bx">
            <div class="tt">Know more from <span>FAQs</span></div>
            <p>Find answers to common queries, empowering informed decisions. Navigate through our FAQs for insights into our products and services.</p>
        </div>
        <div class="accordion" 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">
                    <h5 class="mb-0 accordion-button <?=$i!='1'?'collapsed':'';?>" data-bs-toggle="collapse" data-bs-target="#collapse<?= $faq_res['slno']; ?>" aria-expanded="true" aria-controls="collapse<?= $faq_res['slno']; ?>">
                    <?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['question']); ?>
</h5>
                </div>
                <div id="collapse<?= $faq_res['slno']; ?>" class="accordion-collapse collapse <?=$i=='1'?'show':'';?>" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                    <?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['answer']); ?>
                    </div>
                </div>
            </div>
            <?php $i++;} ?>
         
        </div>
    </div>
</div>