ok
Direktori : /home2/selectio/public_html/saew.in/ |
Current File : /home2/selectio/public_html/saew.in/client.php |
<?php include 'header.php'; $client = $pdo->prepare("SELECT * FROM tbl_client WHERE status = 1"); $client->execute(); $client_data = $client->fetchAll(PDO::FETCH_ASSOC); $client_total = $client->rowCount(); ?> <!-- Content --> <div class="page-content bg-white"> <!-- inner page banner --> <div class="dlab-bnr-inr overlay-black-middle bg-pt" style="background-image:url(images/banner/bnr4.jpg);"> <div class="container"> <div class="dlab-bnr-inr-entry"> <h1 class="text-white">Client Category</h1> <!-- Breadcrumb row --> <div class="breadcrumb-row"> <ul class="list-inline"> <li><a href="index.php">Home</a></li> <li>Our Client Category</li> </ul> </div> <!-- Breadcrumb row END --> </div> </div> </div> <!-- inner page banner END --> <!-- contact area --> <div class="content-block"> <!-- Cleint logo --> <div class="section-full content-inner bg-gray"> <div class="container"> <div class="section-head text-black text-center"> <h2 class="title">Get to know our clients.</h2> <p>Explore a showcase of our satisfied clients below, a testament to our commitment to excellence in every project.</p> </div> <div class="row"> <?php $category = $pdo->prepare("SELECT * FROM tbl_client_category WHERE status = 1"); $category->execute(); $category_data = $category->fetchAll(PDO::FETCH_ASSOC); $category_total = $category->rowCount(); if($category_total > 0){ foreach($category_data as $category_datas){ $client = $pdo->prepare("SELECT * FROM tbl_clientname WHERE status = 1 AND category_id=".$category_datas['id']); $client->execute(); $client_data = $client->fetchAll(PDO::FETCH_ASSOC); $client_total = $client->rowCount(); ?> <div class="row"> <?php if($client_total > 0) { echo '<h2 class="title">'.$category_datas["category_name"].'</h2>'; foreach($client_data as $client_datas) { ?> <div class="col-lg-3 col-md-6 col-sm-6 wow fadeInUp" data-wow-duration="2s" data-wow-delay="0.3s"> <p><?= $client_datas['client_name'] ?></p> </div> <?php } } ?> </div> <?php } }?> </div> </div> </div> <!-- Cleint logo END --> </div> <!-- contact area END --> </div> <!-- Content END--> <?php include 'footer.php';?>