Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wrapper {display: grid;
- grid-template-columns: repeat(6, 1fr);
- grid-gap: 30px;}
- echo '<div class="wrapper">';
- if ($id_cate !== 0 && $result = $connection->query($sql)) {
- $nombre_categoria = '';
- $nombre_subcategoria = '';
- $nombre_subnivelcategoria = '';
- while ($myrow = $result->fetch_assoc()) {
- if ($nombre_categoria !== $myrow['nombre_categoria']){
- $nombre_categoria = $myrow['nombre_categoria'];
- echo '<h2>Categoría</h2>';
- }
- if ($nombre_subcategoria !== $myrow['nombre_subcategoria']){
- $nombre_subcategoria = $myrow['nombre_subcategoria'];
- echo '<h3>Sub Categoría</h3>';
- }
- $id_prod = $myrow['id_prod'];
- $precio = $myrow['precio'];
- $nombre = $myrow['nombre'];
- $fotoprod = $myrow['filech'];
- echo '<div class="items">';
- echo '<h4">';
- echo '<a href="#">txt</a></h4>';
- echo '<a href="#"><img/></a>';
- echo '<h5>txt</h5>';
- echo '</div>';
- $cont++;
- }
- }
- echo '</div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement