Welcome to WebmasterWorld Guest from 54.234.38.8

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

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

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

Junior Member

5+ Year Member

joined:Sept 19, 2008
posts: 49
votes: 0


<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?

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

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


Explain more please.
11:41 am on Sept 11, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


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