我有一个包含电影名称,他们的描述和封面图片的数据库.封面图片字段类型为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>
Run Code Online (Sandbox Code Playgroud)
我只是想在影片的标题旁边展示Imgaes?