i checked my image in db is fine just a problem is that can't display it to web browser.
In my database have 2 columns first is name to take image name like :'Error.png'. The second is longblog like this: [BLOB - 23B] the thing i echo to browser is image
however the longblog is still the random tmp files saved to my db like ."C:\wamp\tmp\php5037.tmp" i still dont understand why i echo this C:\wamp\tmp\php5037.tmp thing to take a image like other people showed me
column like below
<?php
$connect = mysqli_connect('localhost','root','','register');
$rs = mysqli_query($connect,"select * from uploader");
while($row = mysqli_fetch_array($rs,MYSQLI_ASSOC)){
$imagebytes = $row['image'];
header('Content-type: image/jpeg');
echo $imagebytes;
}
?>
anyway if u have any codes that worked plz show me .Thanks for any help