Tema: If anidado
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/02/2008, 12:04
Avatar de Sergestux
Sergestux
 
Fecha de Ingreso: agosto-2007
Ubicación: Tapachula
Mensajes: 1.218
Antigüedad: 16 años, 9 meses
Puntos: 20
Re: If anidado

Por que no pones el for completo para ver si no hay algun error que se te haya pasado.

Pors cierto este codigo:
Código PHP:
if ($row_reserva['estado'.$x]=="confirmado") { 
    
$restarstd=$restarstd++; 


Podria quedar asi:

Código PHP:
if ($row_reserva["estado$x"]=="confirmado")  
    
$restarstd++;