Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/07/2005, 10:14
anllury
 
Fecha de Ingreso: mayo-2003
Mensajes: 54
Antigüedad: 20 años, 11 meses
Puntos: 0
Pregunta ayuda urgente con Undefined offset: 2

El siguiente código me manda este mensaje Notice: Undefined offset: 2 in C:\functions.php</b> on line 16
<?
$aproyectos = loadtabla("casas.csv", ",");
$nlen = count($aproyectos);
$lastproyecto = "mariaaaaaaa123";
?>

var casas = [<?
$counter = 0;
for ($i = 0; $i<=$nlen - 1; $i++){
if ($aproyectos[$i][2] == "C" ){ //ESTA ES LA LINEA 16
if($lastproyecto <> $aproyectos[$i][1]){
$counter = $counter + 1;
if ($counter > 1){
echo(",");
}
echo("['" . $aproyectos[$i][0] . "','" . $aproyectos[$i][1] . "']");
$lastproyecto = $aproyectos[$i][1];
}
}
}
?>
];
Porfavor me podrían ayudar con suma urgencia?