Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. wrapper {display: grid;
  2. grid-template-columns: repeat(6, 1fr);
  3. grid-gap: 30px;}
  4.  
  5. echo '<div class="wrapper">';
  6.  
  7. if ($id_cate !== 0 && $result = $connection->query($sql)) {
  8.  
  9. $nombre_categoria = '';
  10. $nombre_subcategoria = '';
  11. $nombre_subnivelcategoria = '';
  12.  
  13. while ($myrow = $result->fetch_assoc()) {
  14.  
  15. if ($nombre_categoria !== $myrow['nombre_categoria']){
  16. $nombre_categoria = $myrow['nombre_categoria'];
  17.  
  18. echo '<h2>Categoría</h2>';
  19.  
  20. }
  21.  
  22. if ($nombre_subcategoria !== $myrow['nombre_subcategoria']){
  23. $nombre_subcategoria = $myrow['nombre_subcategoria'];
  24.  
  25. echo '<h3>Sub Categoría</h3>';
  26.  
  27. }
  28. $id_prod = $myrow['id_prod'];
  29. $precio = $myrow['precio'];
  30. $nombre = $myrow['nombre'];
  31. $fotoprod = $myrow['filech'];
  32.  
  33.  
  34. echo '<div class="items">';
  35.  
  36. echo '<h4">';
  37. echo '<a href="#">txt</a></h4>';
  38. echo '<a href="#"><img/></a>';
  39. echo '<h5>txt</h5>';
  40.  
  41. echo '</div>';
  42.  
  43. $cont++;
  44. }
  45.  
  46. }
  47. echo '</div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement