<?php
$faq = mysqli_query($dbconn, "select * from faq_tbl");
?>


<div class="faq_section">
    <div class="container">
        <div class="title_4 wow fadeInDown" data-wow-delay=".2s">FAQs</div>
        <div class="clearfix"></div>

        <div class="accordion" id="accordionExample">

        <?php
            $i = 1;
            while ($faq_res = mysqli_fetch_array($faq)) { ?>

            <div class="accordion-item wow fadeInLeft" data-wow-delay=".3s">
                <div class="accordion-header" id="heading_<?= $i ?>">
                    <span class="accordion-button <?php if ($i != 1) {echo 'collapsed';} ?>" role="button" data-bs-toggle="collapse" data-bs-target="#faq_<?= $i ?>" aria-expanded="true" aria-controls="heading_<?= $i ?>"><?=$faq_res['question'];?>
                    </span>
                </div>



                <div id="faq_<?= $i ?>" class="accordion-collapse collapse <?php if ($i == 1) {echo 'show';} ?>" aria-labelledby="heading_<?= $i ?>" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p><?=$faq_res['answer'];?></p>
                    </div>
                </div>
            </div>

            <?php $i++;
        } ?>
            <!-- <div class="accordion-item wow fadeInLeft" data-wow-delay=".3s">
                <h4 class="accordion-header" id="heading_2">
                    <span class="accordion-button collapsed" role="button" data-bs-toggle="collapse" data-bs-target="#faq_2" aria-expanded="false" aria-controls="heading_2">Why is Lorem Ipsum Dolor used?
                    </span>
                </h4>
                <div id="faq_2" class="accordion-collapse collapse" aria-labelledby="heading_2" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p>The Lorem Ipsum text is used to fill spaces designated to host texts that have not yet been published. They use programmers, graphic designers, typographers to get a real impression of the digital / advertising / editorial product they are working on.


                        </p>
                    </div>
                </div>
            </div>
            <div class="accordion-item wow fadeInLeft" data-wow-delay=".4s">
                <h4 class="accordion-header" id="heading_3">
                    <span class="accordion-button collapsed" role="button" data-bs-toggle="collapse" data-bs-target="#faq_3" aria-expanded="false" aria-controls="faq_3">What is the most used version?</span>
                </h4>
                <div id="faq_3" class="accordion-collapse collapse" aria-labelledby="heading_3" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p>Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


                        </p>
                    </div>
                </div>
            </div>

            <div class="accordion-item wow fadeInLeft" data-wow-delay=".5s">
                <h4 class="accordion-header" id="heading_4">
                    <span class="accordion-button collapsed" role="button" data-bs-toggle="collapse" data-bs-target="#faq_4" aria-expanded="false" aria-controls="faq_4">What are the origins of Lorem Ipsum Dolor Sit? </span>
                </h4>
                <div id="faq_4" class="accordion-collapse collapse" aria-labelledby="heading_4" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p>Its origins date back to 45 BC. In fact, his words were randomly extracted from the De finibus bonorum et malorum , a classic of Latin literature written by Cicero over 2000 years ago.


                        </p>
                    </div>
                </div>
            </div>

            <div class="accordion-item wow fadeInLeft" data-wow-delay=".6s">
                <h4 class="accordion-header" id="heading_5">
                    <span class="accordion-button collapsed" role="button" data-bs-toggle="collapse" data-bs-target="#faq_5" aria-expanded="false" aria-controls="faq_5">What is the original text of Lorem Ipsum Dolor Sit Amet?
                    </span>
                </h4>
                <div id="faq_5" class="accordion-collapse collapse" aria-labelledby="heading_5" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p>The original Latin text
                            From De finibus bonorum et malorum sections 1.10.32 and 1.10.33 - Marco Tullio Cicerone

                        </p>
                    </div>
                </div>
            </div>

            <div class="accordion-item wow fadeInLeft" data-wow-delay=".6s">
                <h4 class="accordion-header" id="heading_6">
                    <span class="accordion-button collapsed" role="button" data-bs-toggle="collapse" data-bs-target="#faq_6" aria-expanded="false" aria-controls="faq_6">Permanent or Temporary Bonding?
                    </span>
                </h4>
                <div id="faq_6" class="accordion-collapse collapse" aria-labelledby="heading_6" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p>Which one you want makes a difference in how you test tape. Here are some more behind-the-scenes insights to our application testing process.</p>
                        <p>For <strong><em>temporary bonding</em></strong>, we are trying to discover whether tape adheres quickly and comes off cleanly..an important field test when considering protective film or stucco tape. &nbsp;In this scenario, we will apply the same environmental conditions to the adhesives, and see how it performs. Does it apply quickly and evenly? Does it remove easily and without residue? &nbsp;We can certainly duplicate this in the lab, but there’s no replacement for real world testing. Which is why it’s important that our clients understand that field tape testing takes time. If your issue is stucco tape isn’t sticking in 90°F and 100% humidity, it doesn’t do us any good to test it in the fall when it’s 60°F and 20% humidity.</p>
                        <p><em><strong>Permanent bonding</strong></em> is a different animal. &nbsp;Oftentimes, the tape needs to cure to assess performance, like acrylic adhesives that need 72 hours to set. &nbsp;There are two common real-world tests we use here:</p>
                    </div>
                </div>
            </div> -->
        </div>
    </div>

</div>