我试图从 PHP 数据库中读取图像,但它在整个页面上显示图像。我想在 html 页面上显示图像。请帮忙
$sql = "SELECT * FROM images";
$result = mysql_query($sql) or die("Invalid query: " . mysql_error());
while($row = mysql_fetch_array($result))
{
header("Content-type: image/jpeg");
echo $row[1];
}