Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/04/2010, 17:29
Avatar de Vun
Vun
Colaborador
 
Fecha de Ingreso: agosto-2009
Ubicación: Benalmádena, España
Mensajes: 2.265
Antigüedad: 14 años, 9 meses
Puntos: 150
Respuesta: Problema al imprimir consulta mysql/php

Prueba asi, solo movi una linea de lugar:

Código PHP:
$result mysql_query("Select Li.Titol, Li.Tema , Le.ID From llibres Li Inner join Ejemplares e On Li.REF = e.REF Inner join Lectors Le On e.ID = Le.ID Where e.ID='1'");

    echo 
"<table border='1' >";
    echo
"<tr>"
    
echo"<th>Titol</th>";
    echo 
"<th>Autor</th>";
    echo
"</tr>";
    

while (
$row mysql_fetch_array($result)) 
$titol=($row['Titol']);$autor=($row['Autor']);$id=($row['ID']);
    {
      echo 
"<tr>";
      echo 
"<td>" $titol "</td>";
      echo 
"<td>" $autor "</td>";
      echo 
"</tr>";
}
  echo 
"</table>"