Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/10/2007, 07:29
Avatar de hulray
hulray
 
Fecha de Ingreso: septiembre-2006
Mensajes: 630
Antigüedad: 17 años, 7 meses
Puntos: 3
Mensaje de error

Buenas, les cuento, necesito que me mande un mensaje de error cuando el i_max se pase de los 10. No me sale ningun mensaje, que error cometo o me falta algo de codigo?

gracias

Código PHP:
  if( isset($submit_agregar)) {
    if( 
$submit_agregar == " x " ) {
      for ( 
$i=$i $i_max$i++ ) {
        if ( 
$ar_elim[$i] ) {
          
$t $i;
          for ( 
$j=$i+1$j $i_max$j++ ){
            
            
$ar_idequ[$t] = $ar_idequ[$j];
            
$ar_nombre[$t] = $ar_nombre[$j];
            
$ar_nomequ[$t]  = $ar_nomequ[$j];
            
$ar_marca[$t] = $ar_marca[$j];
            
$ar_modelo[$t] = $ar_modelo[$j];
            
$ar_marca[$t] = $ar_marca[$j];
            
$ar_serie[$t] = $ar_serie[$j];
            
$ar_anio[$t] = $ar_anio[$j];
            
$ar_ubica[$t]  = $ar_ubica[$j];
            
$ar_resolu[$t] = $ar_resolu[$j];
            
$ar_elim[$t]   = $ar_elim[$j];
            
$t++;
          }
          
$i_max--;
          
$i--;
        }
      }
    }else{
      
$i_max++;
      if ( 
$i_max == 11 $i_max=10;
    }
    
$error=1;
  }
  if( 
$idx_elim ) {
    
$submit_agregar "OK";
    
$i_max--;
    
$error=1;
  }