( ! ) Warning: Use of undefined constant - assumed ' ' (this will throw an Error in a future version of PHP) in C:\wamp64\www\todolist\index.php on line 36
Ligne 36 :
<?php } ?>
Code complete :
<?php
session_start();
include('bd/connexionDB.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<title>Accueil</title>
</head>
<body>
<h1>Mon site</h1>
<?php if(!isset($_SESSION['id'])){ ?>
<a href="inscription.php">Inscription</a>
<a href="#">Connexion</a>
<a href="#">Mot de passe oublié</a>
<?php }
else
{ ?>
<a href="#">Mon profil</a>
<a href="#">Modifier mon profil</a>
<a href="#">Déconnexion</a>
<?php } ?>
</body>
</html>
Je ne comprend pas trop l'erreur , quand j'ai effectuer mes recherches il expliquer que le changement de versions de PHP provoquer ceci mais je ne comprend pas sur cette ligne.
Merci pour votre temps !