Prova con questo e fammi sapere...
Codice PHP:
<?
INCLUDE('connessione.php');
$sql="SELECT * FROM cinema";
$risultato_query=mysql_query($sql);
echo"<table width=\"374\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
while($riga=mysql_fetch_assoc($risultato_query))
{
$idcinema=$riga['idcinema'];
$nomecinema=$riga['nomecinema'];
$indirizzo=$riga['indirizzo'];
$citta=$riga['citta'];
echo"<tr> ";
echo" <td class=\"titolo\">Nome cinema</td>";
echo"<td >$nomecinema</td>";
echo"</tr>";
echo"<tr> ";
echo" <td class=\"titolo\">Indirizzo</td>";
echo" <td class=\"newstesto\">$indirizzo</td>";
echo" <td class=\"titolo\">Città</td>";
echo"<td class=\"newstesto\">$citta</td>";
echo"</tr>";
$sql1 = "
SELECT *
FROM film AS f
WHERE f.cinema = $idcinema
";
$risultato_query1=mysql_query($sql1);
while($riga1=mysql_fetch_assoc($risultato_query1))
{
$titolo=$riga1['film'];
$linkfilm=$riga1['linkfilm'];
$orario=$riga1['orario'];
echo"<tr> ";
echo" <td class=\"titolo\">Film</td>";
echo" <td class=\"newstesto\">$titolo film</td>";
echo" <td class=\"titolo\">Orario</td>";
echo" <td class=\"newstesto\">$orario</td>";
echo" <td class=\"titolo\">collegamento</td>";
echo" <td class=\"newstesto\">$linkfilm</td>";
echo"</tr>";
}
echo"<tr>";
echo" <td></td>";
echo" <td></td>";
echo" <td></td>";
echo" <td></td>";
echo" <td></td>";
echo" <td></td>";
echo" </tr>";
}
echo"</table>";
?>