i though repost this issue. i am trying to display image from database. but broken image shows up. and dont how why.
i tried debuging like echo, mysql_error, erron, but there are no errors.
get.php
<?php
include("connect.php");
$user_id = $_SESSION['user_id'];
$image = mysql_query("SELECT * FROM image WHERE user_id = $user_id");
$image = mysql_fetch_assoc($image); //get access to image table
$image = $image['image'];
header("Content-type: image/jpeg");
echo base64_decode($image);
?>
upload.php file
$lastid = mysql_insert_id();
echo "Image upoaded.<p />your image:<p /> //display image here
<img src=\"get.php?image_id=$lastid\"></img>