hola, tengo este codigo puesto, el cual hace que cuando el usuario esta longeado, se muestre un texto, y cuando es un usuario no longeado, que se muestre otro, pero no me funciona, tengo otro script con lo mismo puesto y en ese si me funciona y en este no :|
Código PHP:
<table width="100%" height="225" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="37" scope="col"> </th>
</tr>
<tr>
<th scope="row">
<?php
if(isset($_COOKIE['loggedin'])) {
echo '<a href="perfil.php">Mi Perfil</a>';
} else {
echo '<a href="registrarse.php">Registrarse</a>';
}
if(isset($_COOKIE['loggedin'])) {
echo '<a href="cerrar-sesion.php">Cerrar Sesion</a>';
} else {
echo '<a href="iniciar.php">Iniciar Sesion</a>';
}
?>
</th>
</tr>
</table>