• Content count

  • Joined

  • Last visited

About Sygris

  • Rank
    Forum Newbie
  1. Include menu.php bugs chart

    Hello, When i do the include before the html it works fine the problem is when I put the include in the beginning of the body tag. That´s my menu.php file. <?php $menu = ''; session_start(); if (isset($_SESSION['dt'])) { $menu = ' <li class="nav-item" id="ava"> <a class="nav-link" href="../dt/avaliacoes.php">Avaliações</a> </li>'; } else { $menu = '<li class="nav-item" id="ava"> <a class="nav-link" href="../avaliacoes">Avaliações</a> </li>'; } echo ' <style> .logo { margin-left: 10px; font-size: 100%; } .sair{ height: auto; max-width: 5%; max-height: 5%; } .img-fluid { width: 60%; } </style> <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand" href="#"> <img src="../../assets/img/logo.svg" width="30" height="30" alt="logo"> </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#menu" aria-controls="menu" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="menu"> <ul class="navbar-nav mr-auto"> <li class="nav-item" id="dash"> <a class="nav-link" href="../estatisticas">Estatísticas</a> </li> '.$menu.' </ul> <a href="../funcoes/sair.php" class="btn btn-danger btn-sm"">SAIR</a> </div> </nav>'; ?>
  2. Include menu.php bugs chart

    Hi, Without the menu include my chart is working fine. There is no error in the console and I am using the PHP wrapper. Thanks, Sygris
  3. Hello, I have a file named menu.php and when I include it inside body tag before the chart include my chart gets weird.