Closing PHP tag appearing on the page

Asked

Viewed 38 times

-4

I’m using file .php but when I try to access the site it appears ?> at the top of the page and I’ve checked, has no tag without closing or something like that.

<?php 
session_start();
    include("conecta.php");
    $pega_id = $_SESSION['usuario'];
  $busca_id= "SELECT id FROM cadastro WHERE usuario = '$pega_id' ";
    $resultado_id = mysqli_query($conn, $busca_id);
        while($row_id = mysqli_fetch_assoc($resultado_id)){
            $id = $row_id['id'];
        }
    ?>
<!DOCTYPE html>
<html>

<head>
    <title>Notas Fundamental</title> <!-- Título da página -->
    <meta charset="utf-8">
    <!--Serve para colocar acentuações na página -->
    <link rel="icon" href="favicon.ico" type="icon">
    <link rel="stylesheet" type="text/css" href="../css/exposoft.css" /> <!-- Linkando o css -->


    <!-- Inserindo JavaScript na página -->
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
</head>
</html>

1 answer

-2


If the problem is not on this page, the most likely is that it is in the file conecta.php

Browser other questions tagged

You are not signed in. Login or sign up in order to post.