<?php
include 'library/connect.php';
$result = mysql_query("SELECT film.pics, film.film_id, film.fname, film.dname from film");
echo "<table border='1'> <tr>" ;
while($row = mysql_fetch_array($result))
{
if ($sayac%5 == 0 && $sayac != 0){
print "</tr><tr>";
}
$sayac++;
?>
<td><img src="gallery/<? echo $row['pics'] ?>.jpg" alt="" width="150" height="150"/></td>
<td id="table"><? echo $row['fname'] ?> </br> <a href = "Details.php?id=<? echo $row['film_id'] ?>" >More about this film</a></td>
<?php
echo "</tr>";
}
echo "</table>";
include 'library/close.php';
?>