���� JFIF fdasasfas213sdaf
Server IP : 88.222.243.176 / Your IP : 216.73.216.200 Web Server : LiteSpeed System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64 User : u479334040 ( 479334040) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u479334040/domains/carxmotors.in/public_html/ |
Upload File : |
<?php include('includes/config.php'); $category_id = $_GET['category'] ?? ''; $filter_type = $_GET['filter'] ?? ''; $fuel_type = $_GET['fuel'] ?? ''; $body_type = $_GET['body_type'] ?? ''; $price_min = $_GET['price_min'] ?? ''; $price_max = $_GET['price_max'] ?? ''; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CAR X MOTOR </title> <meta name="author" content=""> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <?php include 'assets.php'; ?> </head> <?php include 'header.php'; ?> <section class="tf-section"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="heading-section flex align-center justify-space flex-wrap gap-20"> <h2 class="wow fadeInUpSmall" data-wow-delay="0.2s" data-wow-duration="1000ms"> Ultimate Collection of Prestige & Performance Cars </h2> <a href="all-model.php" class="tf-btn-arrow wow fadeInUpSmall" data-wow-delay="0.2s" data-wow-duration="1000ms"> View All<i class="icon-autodeal-btn-right"></i> </a> </div> </div> <div class="col-lg-12"> <div class="flat-tabs themesflat-tabs"> <div class="content-tab"> <div class="content-inner tab-content"> <div class="list-car-grid-4 gap-30"> <?php // Fetch products from the database based on filters $query = "SELECT * FROM products WHERE 1"; if ($category_id) { $query .= " AND category = '$category_id'"; } if ($fuel_type) { $query .= " AND fuel_type = '$fuel_type'"; } if ($body_type) { $query .= " AND body_type = '$body_type'"; } if ($price_min) { $query .= " AND price >= '$price_min'"; } if ($price_max) { $query .= " AND price <= '$price_max'"; } // Run the query and fetch results $products = $con->query($query); if ($products->num_rows > 0) : while ($row = $products->fetch_assoc()) : ?> <div class="box-car-list hv-one"> <div class="image-group relative"> <div class="img-style"> <img class="lazyload" data-src="product-admin/<?php echo $row['productImage1']; ?>" src="product-admin/<?php echo $row['productImage1']; ?>" alt="image"> </div> </div> <div class="content"> <div class="text-address"> <p class="text-color-3 font">Car X Motor</p> </div> <h5 class="link-style-1"> <a href="product_details.php?id=<?php echo $row['id']; ?>"> <?php echo $row['productName']; ?> </a> </h5> <div class="icon-box flex flex-wrap"> <div class="icons flex-three"> <i class="icon-autodeal-km1"></i> <span><?php echo number_format($row['km_driven']); ?> kms</span> </div> <div class="icons flex-three"> <i class="icon-autodeal-diesel"></i> <span><?php echo $row['fuel_type']; ?></span> </div> <div class="icons flex-three"> <i class="icon-autodeal-automatic"></i> <span><?php echo $row['transmission']; ?></span> </div> </div> <div class="money fs-20 fw-5 lh-25 text-color-3">₹<?php echo number_format($row['price']); ?></div> </div> </div> <?php endwhile; else : ?> <p>No products found based on the selected filters.</p> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> </section> <?php include 'footer.php'; ?>