📁 File Manager
Editing:
/home/wedigitalindia/www/demo.wedigitalindia.com/mrvbiotec.com/product.php
<!DOCTYPE html> <html lang="en"> <head> <?php include_once("assets/include/head.php")?> </head> <body> <?php include_once("assets/include/header.php")?> <div class="product-section-wrapper"> <?php $banner = mysqli_query($con, "SELECT * FROM banners WHERE page_name='Product'"); $row = mysqli_fetch_array($banner); ?> <div class="pdetail-wrapper" style="background-image: url(<?php path();?>/assets/images/banner/<?php echo $row['banners']; ?>)"> </div><br> <div> <h1 class="main_head text-center">Our Products</h1> </div> <div class="product-categ row"> <?php $query_product=mysqli_query($con,"SELECT * FROM tbl_product WHERE top_sell='1' AND p_is_active='1'"); if($count=mysqli_num_rows($query_product)>0){ while($p_row=mysqli_fetch_array($query_product)){ $pid=$p_row['p_id']; $query=mysqli_query($con,"SELECT * FROM tbl_product_photo where p_id='$pid' limit 1 "); $i=0; while($photo_row=mysqli_fetch_array($query)){ $i++; ?> <div class="card col-lg-4 " data-aos="zoom-out"> <a href="<?php echo path() ?>/products/<?php echo $p_row['slug'];?>"> <div class="inner-card"> <img src="<?php path();?>/assets/images/product/<?php echo $photo_row['photo']; ?>" class="img-fluid rounded"> </a> <div class="d-flex justify-content-between align-items-center mt-3 px-2"> <h4><?php echo $p_row['p_name']; ?></h4> <span class="heart"><i class="fa fa-heart"></i></span> </div> <div class="mt-2 px-2"> <small><?php echo $p_row['p_short_description']; ?></small> </div> <a href="<?php echo path() ?>/products/<?php echo $p_row['slug'];?>"> <div class="px-2 mt-3"> <button class="btn px-3"><i class="fa-solid fa-arrow-right"></i></button> </div></a> </div> </div> <?php } } }?> </div> </div> <?php include_once("assets/include/footer.php")?> </body> </html>
Save
Cancel