View Full Version : Retrieving a blob?
jedimastermopar
12-15-2006, 01:55 PM
Ok I have a table with a blob field that contains an excel document(*.xls) how would I code a link so someone could download this blob?
whizard
12-15-2006, 05:52 PM
not sure, but would this work?
<?php
$query = "SELECT `blob` FROM `table` WHERE `id` = $id";
//Run Query
$blob = $result['blob'];
?>
<a href="<?php print "folder/".$blob; ?>">Download <?php print $blob; ?></a>
HTH
Dan
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.