Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/05/2008, 09:30
Avatar de Carlojas
Carlojas
 
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 16 años, 10 meses
Puntos: 49
Respuesta: problema de session o de if?

Según entiendo tu código debería quedar así:

Código PHP:
<?php
if ($totalRows_rsLogin 0){
$_SESSION['usuario'] = $row_rsLogin['username'];
$_SESSION['autentificado'] = "SI";
$_SESSION['nombreUsu'] = $row_rsLogin['nombre_comp'];
$_SESSION['tipo'] = $row_rsLogin['t_user'];
   if (
$_SESSION['tipo'] == 1){
      
header("Location: admin.php");}
   else{
?>   <br><a href="usrMod.php"><h3 align="center">Modificar cuenta</h3></a>
         <a href="index.php"><h3 align="center">Continuar</h3></a><?php
}
?>

Saludos.