Is there a way I can display an image, pdf or word doc that is stored in a my sql database?
I tried to pull up a word doc with this:
$sql = " SELECT * FROM user WHERE username = '$_SESSION[MM_Username]' ";
$result = mysql_query($sql);
while($row=mysql_fetch_array($result)) {
$inv=$row['invoice'];}
?>
<?php echo " Your Invoice: ".$inv." ";
?>
But all I got was code from the document.