       <?php $sqlTestimonial = mysqli_query($dbconn,"Select * from safe_business_tbl where status='Y'");
$count_r = mysqli_num_rows($sqlTestimonial);
if($count_r>0) { ?>
    <!-- Home Testimonials -->
    <section class="home_testimonials_webpulse">
        <div class="container">
            <span class="title_2">Testimonials</span>
            <div class="clearfix"></div>
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 wow fadeInLeft" data-wow-delay=".4s">

                    <div id="testimonials" class="owl-carousel web-pulse-testimonials">
      <?php  while($result = mysqli_fetch_array($sqlTestimonial)) { ?>
                        <div class="item">
                            <div class="testimonials-item">
                                <p><?php echo html_entity_decode($result['description']);?></p>
                            </div>
                            <div class="testimonial-info">
                                <span class="testimonial-author"><?php echo $result['title'];?></span>
                            </div>
                        </div>
    <?php  } ?>
                    </div>


                </div>
            </div>
        </div>
    </section>
<?php  } ?>
    
        <?php
if($cat_res['catID'])
{
    $cat = $cat_res['catID'];
    $faq = mysqli_query($dbconn,"select question,answer from faq_tbl where category_id='$cat'");
    if(mysqli_num_rows($faq))
    {
        $faq_query = $faq;
    }
    else{
        $cat = 0;
        $faq_query = mysqli_query($dbconn,"select question,answer from faq_tbl where category_id='$cat'");
    }
}
else {
    $cat = 0;
    $faq_query = mysqli_query($dbconn,"select question,answer from faq_tbl where category_id='$cat'");
}
    
      if(mysqli_num_rows($faq_query)>0){ ?>
    <div class="faq_section">
        <div class="container">
             <span class="title_2">FAQs</span>
             <div class="clearfix"></div>

            <div class="accordion" id="accordionExample">
            <?php   $i=1;   while($faq = mysqli_fetch_array($faq_query)){ ?>
                <div class="accordion-item wow fadeInLeft" data-wow-delay=".<?=$i+1;?>s">
                    <h3 class="accordion-header" id="heading_<?=$i?>">
                        <a class="accordion-button" href="#" data-bs-toggle="collapse" data-bs-target="#faq_<?=$i?>" aria-expanded="true"><?=$faq['question']?>
</a>
                    </h3>
                    <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['answer']?></p>
                        </div>
                    </div>
                </div>
        <?php $i++; } ?>
            </div>
    
        </div>
    </div>
    <?php  } ?>