Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/07/2011, 13:11
Avatar de maycolalvarez
maycolalvarez
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Caracas
Mensajes: 12.120
Antigüedad: 15 años, 9 meses
Puntos: 1532
Respuesta: problemas con if Anidados

organiza mejor tu código:

Código PHP:
Ver original
  1. if(condicion1)
  2. {
  3.     if(condicion2)
  4.     {
  5.         if(condicion3)
  6.         {
  7.             instrucciones;
  8.         }
  9.         else
  10.         {
  11.             echo '3';
  12.         }
  13.        
  14.     }  
  15.     else
  16.     {
  17.         echo '2';
  18.     }  
  19. }
  20. else
  21. {
  22.     echo '1';
  23. }

¿estás realmente seguro que no se cumple la 2?, verifica
__________________
¡Por favor!: usa el highlight para mostrar código
El que busca, encuentra...