Advertisement
Hacksas

new_php

Mar 17th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <div class="w3ls_mobiles_grid_right_grid3">
  2. <?php
  3. header('Content-Type: text/html; charset=utf-8');
  4. $dbhost = 'localhost';
  5. $dbuser = 'root';
  6. $dbpass = '';
  7. $dbname = 'products';
  8. $conn = mysqli_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
  9. mysqli_select_db($conn, $dbname);
  10. $result = mysqli_query($conn, "SELECT * FROM items");
  11. while ($rows = mysqli_fetch_array($result)) {
  12. echo '<div class="col-md-4 agileinfo_new_products_grid agileinfo_new_products_grid_mobiles">
  13. <div class="agile_ecommerce_tab_left mobiles_grid">
  14. <div class="hs-wrapper hs-wrapper2">
  15. <img src="images/' . $rows['image'] . '.jpg" alt=" " class="img-responsive" />
  16. <div class="w3_hs_bottom w3_hs_bottom_sub1">
  17. <li>
  18. <a href="#" data-toggle="modal" data-target="#myModal8"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span></a>
  19. </li>
  20. </ul>
  21. </div>
  22. </div>
  23. <h5><a href="single.html">' . $rows['itemname'] . '</a></h5>
  24. <div class="simpleCart_shelfItem">
  25. <p><i class="item_price">$' . $rows['price'] . '</i></p>
  26. <p><span>$980</span> <i class="item_price">$#</i></p>
  27. <form action="#" method="post">
  28. <input type="hidden" name="cmd" value="_cart" />
  29. <input type="hidden" name="add" value="1" />
  30. <input type="hidden" name="w3ls_item" value="Asus Laptop" />
  31. <input type="hidden" name="amount" value="880.00"/>
  32. <button type="submit" class="w3ls-cart">Add to cart</button>
  33. </form>
  34. </div>
  35. </div>
  36. </div>';}
  37. ?>
  38. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement