Guest User

Untitled

a guest
Nov 1st, 2016
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include("inc/header.php");
  3. $sqlCategorias = mysqli_query($conexao, "SELECT nomeCategoria, nomeArea FROM categoria INNER JOIN area ON categoria.idCategoria = area.idCategoria");
  4.  
  5. ?>
  6.  
  7. <div class="container">
  8.     <section class="categorias col-md-9">
  9.  
  10.         <?php
  11.             while($row = mysqli_fetch_array($sqlCategorias)):
  12.                 $nomeCategoria = $row['nomeCategoria'];
  13.                 $nomeArea = utf8_encode($row['nomeArea']);
  14.                
  15.         ?>
  16.         <article>
  17.             <h2><?php echo $nomeCategoria; ?></h2>
  18.             <ul>
  19.                 <li><a href="#"><?php echo $nomeArea;?></a></li>
  20.             </ul>
  21.         </article>
  22.         <?php  
  23.             endwhile;
  24.         ?>
  25.     </section>
  26.     <aside class="widgets col-md-3">
  27.         widgets
  28.     </aside>
  29. </div>
  30.  
  31.  
  32. <?php
  33. include("inc/footer.php");
  34. ?>
RAW Paste Data