php - How to display the images from a mysql database? When I tried to display images, its showing only the name of that images -
i retrieve images mysql table. getting images icons only. please me solve this.
<?php include 'config.php'; $query = mysql_query("select * 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>"; ?>
what see if echo $row['image']
?
do see image url ?
Comments
Post a Comment