Okay, you said:
############ #METHOD A # // this is what you asked me to do on your last post ############$sql = “SELECT filename, filetype, filesize, filedata FROM files WHERE ID=$id”;
$result = @mysql_query($sql);
$data = @mysql_result($result, 0, “filedata”);header("Content-type: image/jpeg"); echo $filedata;</blockquote>
Well, actually, I didn’t say that or at least didn’t mean it. If you load the database’s blob data into a variable called $data, you would echo that data not the field name… If I told you that, I am sorry. So, it should be something like this:
[php]
$sql = “SELECT filename, filetype, filesize, filedata FROM files WHERE ID=$id”;
$result = @mysql_query($sql);
$data = @mysql_result($result, 0, “filedata”);header("Content-type: image/jpeg"); echo $data; //*** Note: this was the line in error...
[/php]
Let us know if it does not work… Sorry it took so long to reply, still helping my sick mother…