D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
G:
/
PleskVhosts
/
jhalakdembla.com
/
akkonlineservices.com
/
Admin
/
Filename :
ViewProduct.php
back
Copy
<?php include('layout/header.php'); require('Coding/db.php'); $id = $_GET['id']; $query = "SELECT *,productcategory.Title AS CtgTitle FROM `productcategory` INNER JOIN `product` ON productcategory.id = product.ProductCtgId where product.id = $id"; $result = mysqli_query($conn,$query); $row = mysqli_fetch_assoc($result); ?> <section class="" style="margin-top: 150px;"> <div class=" container-fluid"> <h2 class="card w-50 p-2">Category : <?php echo $row['CtgTitle'];?></h2> <h2 class="card w-50 p-2">Title : <?php echo $row['Title'];?></h2> <div class="row"> <div class="col-6"> <h2 class="card w-50 p-2">MRP : <?php echo $row['Mrp'];?></h2> </div> <div class="col-6"> <h2 class="card w-50 p-2">Price : <?php echo $row['Price'];?></h2> </div> </div> <div class="row"> <?php if(!empty($row['Image1'])){ ?> <div class="col-12 col-md-6 col-lg-4 "> <div class="card"> <?php echo "<img class='card-img-top' src='img/Productimg/".$row['Image1']."' >" ?> </div> </div> <?php }?> <?php if(!empty($row['Image2'])){ ?> <div class="col-12 col-md-6 col-lg-4 "> <div class="card"> <?php echo "<img class='card-img-top' src='img/Productimg/".$row['Image2']."' >" ?> </div> </div> <?php }?> <?php if(!empty($row['Image3'])){ ?> <div class="col-12 col-md-6 col-lg-4 "> <div class="card"> <?php echo "<img class='card-img-top' src='img/Productimg/".$row['Image3']."' >" ?> </div> </div> <?php } ?> <?php if(!empty($row['Image4'])){ ?> <div class="col-12 col-md-6 col-lg-4 "> <div class="card"> <?php echo "<img class='card-img-top' src='img/Productimg/".$row['Image4']."' >" ?> </div> </div> <?php }?> </div> <div class="card p-2"> <?php echo $row['Description']; ?> </div> </div> </section> <?php include('layout/footer.php'); require('Coding/db.php'); ?>