���� JFIF fdasasfas213sdaf
Server IP : 88.222.243.55 / 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 the configuration file include 'includes/config.php'; // Fetch all products from the database $product_sql = "SELECT * FROM products"; $product_result = $con->query($product_sql); // Fetch all categories from the database $category_sql = "SELECT * FROM category"; $category_result = $con->query($category_sql); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CAR X MOTOR </title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <?php include 'assets.php'; ?> </head> <?php include 'header.php'; ?> <section class="flat-title"> <div class="container2"> <div class="row"> <div class="col-lg-12"> <div class="title-inner style"> <div class="title-group fs-12"><a class="home fw-6 text-color-3" href="index.php">Home</a><span>All Products & Categories</span></div> </div> </div> </div> </div> </section> <section class="tf-section"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="flat-tabs themesflat-tabs"> <div class="content-tab"> <div class="content-inner tab-content"> <!-- Display Categories --> <div class="list-car-grid-4 gap-30 mt-50"> <?php if ($category_result->num_rows > 0) { // Loop through each category while($category = $category_result->fetch_assoc()) { // Category details $categoryName = $category['categoryName']; $categoryImage = $category['categoryImage']; // Assuming the image is stored in the 'categoryImage' column ?> <div class="box-car-list hv-one"> <div class="image-group relative"> <div class="img-style"> <!-- Display category image --> <img class="lazyload" data-src="product-admin/uploads/category/<?php echo $categoryImage; ?>" src="product-admin/uploads/category/<?php echo $categoryImage; ?>" 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="search_result.php?category=<?php echo $category['id']; ?>"><?php echo $categoryName; ?></a> </h5> </div> </div> <?php } } else { echo "<p>No categories found.</p>"; } ?> </div> </div> </div> </div> </div> </div> </div> </section> <?php include 'footer.php'; ?> </html>