Guest User

Untitled

a guest
Feb 23rd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. <?php
  2. //get rows query
  3. $query = $db->query("SELECT pd.Product_Details_ID,pd.Slide_Photos,pd.rate,pm.Product_Name,pm.Product_ID,pm.gender from product_details as pd INNER JOIN product_master as pm ON pd.Product_ID=pm.Product_ID where pm.gender='$gender' ");
  4. if($query->num_rows > 0){
  5. while($row = $query->fetch_assoc()){
  6. // $str = $row["Product_Details_ID"];
  7.  
  8. // print_r($row);exit;
  9.  
  10. /*
  11. $Product_Details_ID = $row["Product_Details_ID"];
  12. $productname= $row["Product_Name"];
  13. $rate = $row["rate"]
  14. $Product_ID = $row["Product_ID"];
  15.  
  16.  
  17. $_SESSION['Product_Details_ID'] = $Product_Details_ID;
  18. $_SESSION['Product_ID']= $Product_ID;
  19. $_SESSION['Product_Name']=$productname;
  20. $_SESSION['rate']=$rate;*/
  21. ?>
  22.  
  23. <!--1st div1 -->
  24.  
  25.  
  26. <div class="col-sm-4 ">
  27. <div class="productBox">
  28. <div class="productImage clearfix">
  29. <img src="<?php echo $row["Slide_Photos"]; ?>" alt="products-img">
  30. <div class="productMasking">
  31. <ul class="list-inline btn-group" role="group">
  32. <li><a class="btn btn-default btn-wishlist"><i class="fa fa-heart-o"></i></a></li>
  33.  
  34.  
  35.  
  36.  
  37. <li><a href="temp.php?action=addToCart&Product_Details_ID=<?php echo $row["Product_Details_ID"]; ?>&gender=<?php echo $row["gender"]; ?>" class="btn btn-default" data-toast data-toast-type="success" data-toast-position="topRight" data-toast-icon="icon-circle-check" data-toast-title="Product" data-toast-message="successfuly added to cart!" class="btn btn-default" onclick="alert('product added successfully.')"><i class="fa fa-shopping-basket"></i></a></li>
  38.  
  39.  
  40.  
  41.  
  42. <li><a class="btn btn-default" href="product_info.php?Product_Details_ID=<?php echo $row["Product_Details_ID"]; ?>"><i class="fa fa-eye"></i></a></li>
  43. </ul>
  44. </div>
  45. </div>
  46. <div class="productCaption clearfix">
  47. <a href="single-product.html">
  48. <h5><?php echo $row['Product_Name']; ?> <?php echo $row["Product_Details_ID"]; ?></h5>
  49. </a>
  50. <h3><?php echo $row["rate"]; ?></h3>
  51. </div>
  52. </div>
  53. </div>
  54.  
  55.  
  56. <?php } }else{ ?>
  57. <p>Product(s) not found.....</p>
  58. <?php } ?>
Add Comment
Please, Sign In to add comment