/
var
/
www
/
html
/
stengineers
/
Upload FileeE
HOME
<?php header('Access-Control-Allow-Origin: *'); require_once 'admin/dbconnection.php'; $pagetitle = "ST Engineers - Products"; require 'header.php'; error_reporting(0); $url = $_GET['url']; // $row1 = mysqli_query($con, "select * from category where category_type='Parent' and url=$url"); // $row2 = mysqli_fetch_array($row1); // // print_r($row2);exit; // // Fetch the category data // $row2 = mysqli_fetch_array($row1); // $id = $row2['id']; // $category_name = $row2['category_name']; // $description = $row2['description']; // $thumb_img = $row2['thumb_img']; // $catgory_type = $row2['category_type']; // $parent_categoryid = $row2['parent_categoryid']; // $status = $row2['status']; ?> <!--Start Page Header--> <section class="product-banner"> <div class="d-flex flex-column align-items-center "> <div class="page-header__inner text-center"> <h1>Products</h1> </div> </div> </section> <!--End Page Header--> <!--Product Section Start--> <section class="product-sec "> <div class="container-fluid"> <div class="row col-xl-8 col-lg-10 mx-auto"> <p>S&T Engineer’s wide range of products makes the brand one of the best distributors of machine tools in India. With very deep Industrial Exposure from Global Brands, S&T Engineers ensures customers have access to the cutting-edge solutions they need to thrive in today's competitive machine tool market. </p> </div> <div class="row col-xl-11 col-lg-12 mx-auto my-6 position-relative"> <?php $result = $con->query("SELECT * FROM category WHERE category_type='Parent' AND status='active'"); while ($row = $result->fetch_assoc()) { $thumb_img = $row['thumb_img']; $categoryName = $row['category_name']; $description = implode(' ', array_slice(explode(' ', $row['description']), 0, 15)); $url = $row['url']; echo "<div class='col-lg-4 col-md-6'> <div class='product-box'> <img src='".$imageUrl."product/green-bg.png' class='green-bg'> <img src='$thumb_img' class='position-relative product-img '> <div class='product-box-content'> <h6>$categoryName</h6> <p>$description</p> <a class='product-btn1 shadow-pulse' href='".$baseUrl."category/$url'>Get Info<img src='assets/images/home/btn-arrow.png' alt='' class='arrow-img1'></a> </div> </div> </div>"; } ?> </div> </div> </section> <!--Product Section End--> <?php require 'footer.php';?>