Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/10/2012, 07:12
edward_bukowski_1980
 
Fecha de Ingreso: octubre-2012
Ubicación: Caracas, Venezuela
Mensajes: 31
Antigüedad: 11 años, 6 meses
Puntos: 0
Problema de undefined index.

Hola a todos, espero que esten bien.
Bueno, tengo un nuevo problema, en una aplicacion, le explico:
Base de datos.
Tabla musica2.
Campos: id, album, artista, canciones, ano e imagen.
Tabla: generos.
Campos: id_g, id, genero1, genero2, genero3.
Código PHP:
<?php 

$id 
$_GET['id'];


require (
"funciones4.php");
$idc conectar();
$sql="SELECT * FROM musica2 m, generos g WHERE m.id = g.id";
if(!
mysql_query($sql)) echo mysql_error();
$sql "select *from musica2 where id=$id";

$res ejecutar($sql,$idc);
$fila getRegistro ($res);
$sql="DELETE generos FROM generos, musica2 WHERE generos.id = musica2.id";
if(!
mysql_query($sql)) echo mysql_error();

$sql "delete from musica2 where id=$id";


$res ejecutar($sql,$idc);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sistema</title>
<link href="estilo_eliminar.css" rel="stylesheet" type="text/css" />
</head>
<body>


   <?php 
if ($res)
    echo 
"ELIMINACIÓN EXITOSA";
else
    echo 
"ERROR";
?>

 
<br/>
<br/>
<table width="330" border="10" >
 
  <tr>
    <td width="100" align="center">Álbum:</td>
    <td width="196" align="center"><?php echo $fila['album'];?></td>
  </tr>
  <tr>
    <td align="center">Artista:</td>
    <td align="center"><?php echo $fila['artista'];?></td>
  </tr>
  <tr>
    <td align="center">Canciones:</td>
    <td align="center"><?php echo $fila['canciones'];?></td>
  </tr>
  <tr>
    <td align="center">Géneros:</td>
    <td align="center"><?php echo $fila['genero1'];?><?php echo " " ?>

    <?php echo $fila['genero2'];?><?php echo " " ?>
   
    <?php echo $fila['genero3'];?><?php echo " " ?>
  
   
    
    
    </td>
  </tr>
  <tr>
    <td align="center">Año:</td>
    <td align="center"><?php echo $fila['ano'];?></td>
  </tr>  
  <tr>  
    <td align="center">Imagen:</td>
    <td align="center"><?php echo $fila['imagen'];?></td> 
  </tr>
</table>
</body>
</html>
<?php 
cerrar 
($idc);
?>
El problema es que me salen estos errores y no se como resolverlo, intento e intento y nada.

SCREAM: Error suppression ignored for
( ! ) Notice: Undefined index: genero1 in C:\wamp\www\Sistema_Edward-Bukowski\eliminar999.php on line 59

SCREAM: Error suppression ignored for
( ! ) Notice: Undefined index: genero2 in C:\wamp\www\Sistema_Edward-Bukowski\eliminar999.php on line 61

SCREAM: Error suppression ignored for
( ! ) Notice: Undefined index: genero3 in C:\wamp\www\Sistema_Edward-Bukowski\eliminar999.php on line 63

Espero sus respuestas, por favor ayudenme.
Gracias por todo, saludos y hablamos.
Hasta luego.