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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -