ok
Direktori : /home2/selectio/public_html/thecomponents.in/ |
Current File : /home2/selectio/public_html/thecomponents.in/category.php |
<?php include "header.php"; $category_id = $_GET['id']; $query = $pdo->prepare("SELECT * FROM `category`"); $query->execute(); $result = $query->fetchAll(PDO::FETCH_ASSOC); ?> <style> .home .service-list .icon-box-icon { margin-bottom: 1.3rem; font-size: 3.6rem; height: 40px; line-height: 40px; color: #05b895; } .minipopup-area{ display: none; } .category-dropdown.fixed .dropdown-box{ display: none; } </style> <main class="main"> <div class="page-header" style="background-image: url('images/new-slide/banner1-880-300.jpg'); background-color: #3C63A4;"> <h3 class="page-subtitle">Categories</h3> </div> <nav class="breadcrumb-nav"> <div class="container"> <ul class="breadcrumb"> <li><a href="index.php"><i class="d-icon-home"></i></a></li> <li>Categories</li> </ul> </div> </nav> <div class="page-content mb-10 pb-6"> <div class="container"> <div class="row"> <?php foreach($result as $row){ ?> <div class="col-xl-3 col-lg-4 col-6 mb-4"> <div class="category category-light category-absolute"> <a href="shop.php?category=<?=$row['id']?>"> <figure class="category-media"> <img src="<?=$row['image']?>" width="300" height="338" alt="category" /> </figure> </a> <div class="category-content"> <h4 class="category-name"> <a href="shop.php?category=<?=$row['id']?>"> <?=$row['name']?> </a> </h4> </div> </div> </div> <?php } ?> </div> </div> </div> </main> <?php include "footer.php"; ?>