<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="noticias.php">Administrador de INNOVAPUCP</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li><a href="noticias.php">Noticias</a></li>
        <li><a href="banner.php">Banner</a></li>
        <?php $sql ="SELECT count(*) as 'contador' FROM contacto";
          $result_edi=mysqli_query($con,$sql);
          if($result_edi){
            $filas=mysqli_num_rows($result_edi);
            if($filas >0){
             while ($fila_edi =mysqli_fetch_assoc($result_edi)) {
                if ($fila_edi['contador'] == 0){                        
                ?>
                <li><a href="#">Reporte Formulario de Contacto (vacío)</a> </li>
                <?php
                }else{
                  ?>
                    <li><a href="reporte/exportar.php">Reporte Formulario de Contacto</a> </li>
                  <?php
                }
              } 
            } 
        }?>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li class="active"><a href="cerrar_sesion.php">Cerrar Sesión <span class="sr-only">(current)</span></a></li>
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</nav>