美好的一天,我的 php 有问题,找不到解决方案
<?php
$pid = $_REQUEST['pid'];
$rs = mysql_query("SELECT image from images where patient_id='$pid'") or die(mysql_error());
while($row = mysql_fetch_assoc($rs));
{
$imagebytes = $row['images'];
header("Content-type: image/jpg");
echo $imagebytes;
}
?>
我把它称为另一个 php
echo '<img src="myimage.php?pid=51">';
但我一直收到一个错误“资源解释为图像但作为 MIME 类型文本/html 传输”我被卡了一段时间了