Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/05/2008, 09:40
hj_yarumal
 
Fecha de Ingreso: mayo-2008
Ubicación: Cerca de Medellín
Mensajes: 8
Antigüedad: 16 años
Puntos: 0
Respuesta: problema de session o de if?

Cita:
Iniciado por Carlojas Ver Mensaje
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.
La parte del else funciona pero la del if no me lleva a ningun lado