In my page I make an include for a header that is at the top of the page, but strangely it is getting a sujeira
that gives a space well at the beginning, I'm not quite sure what it is or what to do, I'll be posting an image:
Mypagewithincludeisthis:
<?php
if(!isset($_SESSION)) {
session_start();
}
// Require da classe de conexão
require_once "_classes/conexao_pdo.class.php";
require_once "_classes/crud.dsc.class.php";
// Instancia Conexão PDO
$conexao = Conexao::getInstance();
$crud = Crud::getInstance($conexao);
$dados = isset($_SESSION["dados"]) ? $_SESSION["dados"] : unserialize($_COOKIE["dados"]);
$email = $dados["email"];
if ($email != "") {
// BUSCANDO PRODUTOS
$RelUsuario = "SELECT *
FROM cadclientes
WHERE cadclientes.email = ? AND acesso_usuario = 1";
$stm = $conexao->prepare($RelUsuario);
$stm->bindValue(1, $email, PDO::PARAM_INT);
$stm->execute();
$RelUsuario = $stm->fetchAll(PDO::FETCH_OBJ);
$stm->closeCursor();
$NomeUsuario = "";
foreach($RelUsuario as $NomeUser) {
$NomeUsuario = $NomeUser->nome;
}
}
?>
<div class="top-bar">
<div class="container">
<div class="top-bar-left">
<ul class="list-inline">
<li class="icon-user"><a href="minha-conta-login.php"><img src="assets/img/icon-1.png" alt=""/> <span>Faça Login</span></a></li>
<li class="icon-form"><a href="cadastro-cliente.php"><img src="assets/img/icon-2.png" alt=""/> <span>Ou cadastre-se, entre aqui</span></a></li>
</ul>
</div>
<div class="top-bar-right">
<ul class="list-inline">
<li class="hidden-xs"><a href="sobre.php">Sobre Nós</a></li>
<li class="hidden-xs"><a href="contato.php">Contato</a></li>
<li class="hidden-xs"><a href="faq.php">FAQ</a></li>
<?php if ($_SESSION["dados"] != "") { ?>
<li class="hidden-xs"><a href="index.php">Olá <?php echo $NomeUsuario; ?></a></li>
<li class="hidden-xs"><a href="logoutCliente.php">Sair</a></li>
<?php } ?>
</ul>
</div>
</div>
</div>