Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/05/2011, 10:41
alexg88
 
Fecha de Ingreso: abril-2011
Mensajes: 1.342
Antigüedad: 13 años
Puntos: 344
Respuesta: Consulta a varias tablas

Algo así podría valer:

Código PHP:
Ver original
  1. $linea = mysql_fetch_array($resultado);
  2.  
  3. while ($linea){
  4.  
  5. $titulo = $linea['titulo'];
  6. echo $titulo;
  7. echo "<br />";
  8.  
  9. do {
  10.  
  11. echo utf8_decode($linea['tit']);
  12. echo "<br />";
  13. echo utf8_decode($linea['letra']);
  14. echo "<br />";
  15.  
  16. } while ($linea = mysql_fetch_array($resultado) && $linea['titulo']==$titulo )
  17.  
  18.  
  19. }

Tienes que tener en cuenta que deberías tener ordenada la consulta por el nombre del disco (ORDER BY discografia.titulo)