Display image from MYSQL using php pdo -
Display image from MYSQL using php pdo -
having problem seeing image on webpage. verified image inserted correctly exporting blob field jpg file , viewing it.
here code. why cannot see image on webpage ?
$mysql2 = "select pfilename,actual_img brigpics pfilename = '".$flist."'"; $stmt = $db1->prepare($mysql2); $stmt->execute(); $stmt->bindcolumn(1, $pfname, pdo::param_str); $stmt->bindcolumn(2, $actual_img, pdo::param_lob); $stmt->fetch(pdo::fetch_bound); header("content-type: image/jpeg"); echo $actual_img;
php mysql html5
Comments
Post a Comment