Jump to content

DOWNLOADING FILES FROM A BLOB FIELD


sCHiuMa

Recommended Posts

im making a simple library archive in my office, and i want to display from a search result some text data, date, and a link to download a zip file. the file is stored in a blob binary field...

mysql_select_db("cds2008");

 

$search=$_POST["search"];

 

 

$result = mysql_query("SELECT * FROM estudios WHERE pueblo LIKE '%$search%'");

 

 

while($r=mysql_fetch_array($result))

{

 

  $numero=$r["numero_de_serie"];

  $fecha=$r["fecha"];

  $estudio=$r["estudio"];

  $pueblo=$r["pueblo"];

  $cliente=$r["cliente"];

  $files=$r["files"];

 

  echo "<hr><br><strong>Numero de Serie:</strong> $numero <br><strong>Fecha:</strong> $fecha <br> <strong>Estudio:</strong> $estudio <br> <strong>Pueblo:</strong> $pueblo <br> <strong>Cliente:</strong> $cliente <br><strong>Files:</strong> $files" </a><br><br>";

}

?>

 

the field with the file is named "files" and i want it to show in the results as a link so anyone can download the file, PLEASE HELP! :D

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.