View Single Post
Old 07-02-2008, 05:39 AM  
xentech
Confirmed User
 
xentech's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 1,405
:stop PHP Experts! Help me please :)

http://bigtitsvideos.info/dl.php?id=5

I'm trying to display an image which is stored in a mediumblob table field, any ideas? Here is my code:

Code:
<?php
include "config.php";
$result = mysql_query("select * from [MASKED] where id = '$id'");

while($r=mysql_fetch_array($result))
{	
   $content=$r["content"];
   $type=$r["type"];

header("Content-type: $type");
echo ($content);
}

mysql_close($connection);
?>
xentech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote