I have the following query:
$query="select g.nombre, a.nombre, a.año from grupo as g, album as a
where g.nombre like '%".$buscar."%' and g.grupoid=a.grupoid";
and my tables are like this:
album (albumid int, grupoid int, nombre varchar(40) año int, estilo varchar (20) primary key albumid);
grupo (grupoid int, nombre varchar (25) primary key grupoid);
how can I display this sort of query I can't displya this way:
$result=mysql_query($query);
while($row=mysql_fetch_array($result))
{
echo"$row["a.nombre"]" ;
}
Thanks in advance.