Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("inc/header.php");
- $sqlCategorias = mysqli_query($conexao, "SELECT nomeCategoria, nomeArea FROM categoria INNER JOIN area ON categoria.idCategoria = area.idCategoria");
- ?>
- <div class="container">
- <section class="categorias col-md-9">
- <?php
- while($row = mysqli_fetch_array($sqlCategorias)):
- $nomeCategoria = $row['nomeCategoria'];
- $nomeArea = utf8_encode($row['nomeArea']);
- ?>
- <article>
- <h2><?php echo $nomeCategoria; ?></h2>
- <ul>
- <li><a href="#"><?php echo $nomeArea;?></a></li>
- </ul>
- </article>
- <?php
- endwhile;
- ?>
- </section>
- <aside class="widgets col-md-3">
- widgets
- </aside>
- </div>
- <?php
- include("inc/footer.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement