映画の名前、説明、表紙の写真を含むデータベースがあります。表紙の写真のフィールド タイプが blob で、問題はデータベースから取得できないことです。映画の名前をカバー写真の横に表示したい...方法は..これが私のコードです..
<?php
include ("php/connection.php");
$ID = $_GET['id'];
$listmovies = "SELECT * FROM movies where Genres LIKE '%$ID%'";
$result = mysql_query($listmovies);
while ( $row = mysql_fetch_assoc($result) ) {
?>
<table border="1" width="100%">
<tr>
<td rowspan="2" width="90" height="120">
<?php
// set the header for the image
header("Content-type: image/jpeg");
echo $row['Image'];
?> </td>
<td width="200" height="10">
<?php
echo $row['Title'];
?></td>
</tr>
<tr>
<td width="200" height="110"><a
href="php/moredetails.php?id=<?php echo $row['ID']; ?>">More Detail</a></td>
</tr>
<?php } ?> </table>
映画のタイトルの横に The Imgaes を表示したいだけですか?