Hi Guys,
I have been trying to display the images from the database with the code below. Images are not displayed.
<?php while($product_data = mysqli_fetch_array($query_product_result))
{
$num_rows_products = $num_rows_products - 1;
Print "<div class='image_panel'><a href = 'products.php?prodid=" . $product_data["ID"] . "'><img src='data:image/jpeg;base64," . base64_encode($row['image']) . "' alt='' /></a></div>";
Print "<h2><a href = 'products.php?prodid=" . $product_data["Item_ID"] . "'>" . $product_data["name"] . "</a></h2>";
Print "<ul><li>Price: £" . $product_data["Item_price"] . "</li><li>Availability: ";
Print "<p>" . $product_data["description"] . "</p>";
if($num_rows_products > 0)
{
Print '<div class="cleaner_with_height"> </div>';
}
}
?>