我想从 mysql 表中检索图像。现在我只得到图像图标。请帮我解决这个问题。
<?php
include 'config.php';
$query = mysql_query("SELECT * FROM addproduct");
echo "<table border='1'>
<thead>
<th>PRODUCT</th>
<th>PRICE</th>
<th>QUANTITY</th>
<th>IMAGE</th>
</thead>";
while ($row=mysql_fetch_array($query))
{
echo "<tr>";
echo "<td>".$row['addProduct']."</td>";
echo "<td>".$row['quantity']."</td>";
echo "<td>".$row['price']."</td>";
//header("Content-type: image/jpeg");
//echo $row['image'];
//echo "<td><img src=".$row['image']."</td>";
echo "<td> <img src=" . $row['image'] . "></td>";
//header("Content-type: image/jpeg");
echo "</tr>";
}
echo "</table>";
?>