I'm trying to make a page where a user can download a file from a blob field in my database.
$result = "SELECT * FROM file where foreign_id='$id';";
$resultSet = mysql_query($result);
while( $row = mysql_fetch_array( $resultSet ) )
{
echo(" <a href='".$row[ "bin_data"]."'>".$row[ "filename"]."</a><br>");
}
This prints the filename in the database, but it does not open the file when you press the link. What's wrong?
Karl