Hi all, i have a table in db which contain some pdf and docx files.
Am trying to display it in a way, so that when the user click on it, it will load the pdf and/or docx file from db in another/same window.
this is what i have done so far:
<?php
$query = "SELECT image_file, note_title, note_commt FROM notez WHERE svreg = '".$svreg."'";
$result = mysql_query($query) or die('Error, query failed');
while(list($image_file, $note_title, $note_commt) = mysql_fetch_array($result))
{ ?>
<img src="<?=$image_file?>" width='30' height='30' class='thumbnail' title='<?=$title?>'>
<?php } ?>