php image blob wont show
问题 So I am trying to show an image from my mysql database. The image is saved as a blob format. I made seperate php file for fetching the image. I then call this file from where I want to show the image like so: <img src="image.php?id=3" /> This is the file that fetches the image: <?php require 'scripts/connect.php'; if(isset($_GET['id'])) { $id = mysql_real_escape_string($_GET['id']); $q = $db->prepare("SELECT image FROM products WHERE id = '$id'"); $q->execute(); $data = $q->fetch(); header(