Affichage d'élément de $_SESSION
Bonjour,
J'ai un problème avec l'affichage de l'élément surname dans la div "menu" ligne 17.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <?php
session_start();
if (!isset($_SESSION['id'])) {
header('Location: ');
}
$bdd = new PDO('mysql:host=localhost;dbname=', '', ');
?>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
<meta name="description" content=""/>
<meta name="keywords" content="navigation, menu, responsive, border, overlay, css transition" />
<link rel="stylesheet" type="text/css" href="/index.css" />
<div id="menu"><ul>
<a href="/profil.php?id=<?php echo $_SESSION['id']; ?>&surname=<?php echo $_SESSION['surname']; ?>"><FONT color="black"><h3><?php echo $_SESSION['surname']; ?></h3></FONT></a>
<a href="/deconnexion.php"><FONT color="black">Déconnexion</FONT></a>
</div>
<center>
<div id="name">
</center>
</head>
<body>
<div id="support">
<center><FONT color="black">Un problème, Une question ?</FONT></center>
<br />
<a href="/chat.php" class="button" style="background: linear-gradient(#42a1ec, #0070c9); border: 1px solid #07c; border-radius: 4px; color: #fff; text-decoration: none; cursor: pointer;">Ouvrez un ticket</a>
</div>
</body>
<footer>
</footer>
</html> |
Merci de votre aide en avance.