Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/03/2010, 13:00
lalo0002
(Desactivado)
 
Fecha de Ingreso: diciembre-2008
Ubicación: Trujillo - Peru
Mensajes: 341
Antigüedad: 15 años, 4 meses
Puntos: 2
Respuesta: Ayuda "undefined index"

este es otro error q no puedo solucionarlo:
Notice: Use of undefined constant EMPL_NOMB - assumed 'EMPL_NOMB' in C:\wamp\www\NMEmpleado.php on line 22

ese es el codigo
Código PHP:
$cid $_POST['cid'];
$id array_shift($cid);

$Select=@mysql_query("SELECT e.`NOMB`, e.`APEL`, e.`MAIL`, e.`FONO`, e.`DNI`,
                             e.`CODI`, u.`NOMB`, u.`PWRD`, u.`CODI`
                     FROM empl e
                     INNER JOIN usua u USING (CODI)
                     WHERE e.`CODI` = $id"
);
$registros mysql_fetch_array($Select);
$NOMB $registros[NOMB]; 

el error da en $EMPL_NOMB = $registros[EMPL_NOMB];
en todas las variables q saco de la bd, aka solo les muestro el primero, no se a q se debe.