Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/05/2008, 09:27
Avatar de eft0
eft0
 
Fecha de Ingreso: junio-2003
Ubicación: Santiago - Chile
Mensajes: 635
Antigüedad: 20 años, 9 meses
Puntos: 9
Respuesta: problema de session o de if?

Ah, no vi bien, tu codigo esta mal, el segundo IF:

}
else{
if ($_SESSION['tipo'] == 1){
header("Location: admin.php");
}

Debe quedar

}
elseif ($_SESSION['tipo'] == 1){
header("Location: admin.php");
}
__________________
eft0's stuff! - http://estebanfernandez.net