kafam iyice kazan oldu. tam olarak nasil olacagini soyleyebilirseniz eger ..

<?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))
{?>
<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';
?>