i am trying to use mysql database and php to display a image in a table. Every other information in my table is displaying fine except for image, i am receiving this.
����JFIF��� ( %!1!1)....383,7*-.7 +%&-----5---+--------5-----+-------------------5-/---����"����B!1A"Qa2
In my table and this goes on for awhile. in my database i have images set to a blob and no null. I am using this code to display it.
<?php
include 'connect.php';
$results = mysqli_query($con, 'select * from products');
?>
<table cellpadding="3" cellspacing ="3" border="0">
<tr>
<th>Image</th>
<th>Name</th>
<th>Description</th>
<th>Price</th>
<th>Buy Product</th>
</tr>
<?php
while($products= mysqli_fetch_object($results)){
if($products->id<=10){?>
<tr>
<td><?php echo $products->images;?></td>
<td><?php echo $products->name;?></td>
<td><?php echo $products->description;?></td>
<td><?php echo $products->price;?></td>
<td><a href="cart.php?id=<?php echo $products->id; ?
>">Add to Cart</a></td>
</tr>
<?php }} ?>
</table>
Any help would be appreciated. Thank you.