I would like to know how to create this table within a table using the film.php only because I want it to not display a table background or table if $count is not > 0 ? Perhaps there is a way to just collapse the table automaticaly if there is nothing in it.
<table align="center" width="806" border="0" background="images/backg.jpg" cellpadding="4">
<tr><td>
<?php
include 'film.php';
?>
</td></tr>
</table>
Here is my film.php file?
if($count > 0){
echo "<table>";
echo "<table border='0' width='800' align='center' >";
echo "
<td width='40%' align='center'></td>
<td width='20%' align='center'></td>
<td width='40%' align='center'></td>";
echo "</tr>";
$row_number = 1;
while ($row = mysql_fetch_array($result)) {
$id_actor= $row["id_actor"];
$idfilm= $row["idfilm"];
$filmTitle= $row["filmTitle"];
$filmRole= $row["filmRole"];
$filmDirector= $row["filmDirector"];
for ($i=0; $i<3; $i++) {
echo"<td><font color=\"white\"> $row[$i]</td>";
}
echo"</tr>";
$row_number++;
}
echo"</table>";