<?php if ($_SESSION[user] != "") { echo "<a href='deslogar.php'> Sair! </a>"; echo "oi amor"; // SO BOTEI PRA TESTAR. } else { ?>
Alguem poderia me ajudar q error se encontra nessa linha
if ($_SESSION[user] != "")
Esta dando esses seguintes errors.
Notice: Use of undefined constant user - assumed 'user' in C:\wamp\www\Site\php\admin.php on line 16
Notice: Undefined index: user in C:\wamp\www\Site\php\admin.php on line 16
desde ja grato