Jump to content

make link for download tif file in BLOB mysql


FD_F

Recommended Posts

i need make link for downloading tiff file stored in BLOB mysql  i try this  :

 

$query="SELECT * FROM `$newtable`";
$result4=mysql_query($query);

$num=mysql_numrows($result4);

mysql_close();



$i=0;
while ($i < $num) {

$f1=mysql_result($result4,$i,"id");
$f2=mysql_result($result4,$i,"priyority");
$f3=mysql_result($result4,$i,"faxnum");
$f4=mysql_result($result4,$i,"status");
$f5=mysql_result($result4,$i,"tiffile");

?>
<tr>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f1; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f2; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f3; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f4; ?></font></td>
<td><a href="url"><?php header('Content-type: image/tiff'); echo $f5;?></a></font></td>
</tr>
$i++;

and i get  open as .. all the time not giving me the link for download the image

somone can tell me where i wrong ?

thanks

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.