Forum Moderators: coopster

Message Too Old, No Replies

html tag that displays all file formats stored as blob in mysql db

         

phex

12:45 pm on Sep 10, 2009 (gmt 0)

10+ Year Member



<img src="viewer.php?id=<?php echo $id;?>" width="400" height="300" alt="<?php echo $name;?>

the tag above displays images stored as blob in tbl_images.
What can i do to make it display .swf, .jpg ,.mp3 almost everithing stored as blob in tbl_images?

andrewsmd

9:27 pm on Sep 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Explain more please.

coopster

11:41 am on Sep 11, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You'll need to know the content type of the stored binary large object and send out the appropriate header [php.net] first.