
10/08/2006, 11:32
|
| | Fecha de Ingreso: mayo-2005 Ubicación: Cancun
Mensajes: 35
Antigüedad: 19 años, 10 meses Puntos: 0 | |
Duda sobre "Undefined offset" Hola amigos, anteriormente Cluster me ayuda con un FOR :
for ($x=0; $x <= count($HTTP_POST_VARS['ids']) ; $x++)
{
$id = $HTTP_POST_VARS['ids'][$x];
$cali = $HTTP_POST_VARS['calificaciones'][$x]; ;
$sql="UPDATE alumnos SET calificacion=$cali Where ID=$id";
mysql_query($sql,$link);
}
mysql_query($sql);
mysql_close();
MI duda es cuando se corre el for sale el siguiente error:
Notice: Undefined offset: 2 in c:\archivos de programa\easyphp1-8\www\captura\guardar.php on line 10
ALGUIENPODRIA EXPLICARME PORQUE SALE ESTE ERROR Y COMO SE QUITA.
GRACIAS POR SU AYUDA |