Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/10/2012, 23:19
edward_bukowski_1980
 
Fecha de Ingreso: octubre-2012
Ubicación: Caracas, Venezuela
Mensajes: 31
Antigüedad: 12 años, 5 meses
Puntos: 0
Respuesta: Relaciones de tablas.

Perfecto, perdon, pense que todos sabian programar muchisimo, lo siento, en serio, tranquilo no pasa nada, yo se programar poco tambien estoy aprendiendo, programacion web, se de redes y soporte tecnico, pero programacion web, mas o menos, no hay problema, tu me ayudas como puedas, gracias y lo siento.

Código:
<?php 


require ("funciones2.php");
$idc = conectar();
$sql = "select album, artista, genero from musica join generos on musica.id_m=generos.id_m";

$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=".css" rel="stylesheet" type="text/css" />
</head>

<body>


<table width="1019" height="79" align="center"  class="color1" id="Listar">
<caption>
<br />
<br />
LISTADO DE REGISTRO<br />
<br /></caption>
  <tr>
  
    <th width="207" align="center">Album</th>
    <th width="172" align="center">Artista</th>
   
    <th width="275" align="center">Generos</th>
   
   
   
  </tr>


 
  <?php 
  $total = totalRegistros($res);
  for ($i=0; $i<$total; $i++) {
	  $fila = getRegistro($res);
  ?>
   <tr>
  
    <td align="center"><?php echo $fila['album']; ?></td>
    
    <td align="center"><?php echo $fila['artista']; ?></td>
  
 
   <td align="center"><?php echo $fila['genero']; ?></td>
 

  <?php } ?>
  
</table>
</body>
</html>
<?php 
cerrar ($idc);
?>