Hi guys just a quick question...when you upload a file to the database and the file name is saved and encrypted in codeigniter how do i make a link that when clicked will download the file associated with the id of the table entry?
for instance this is my view file:
<?php foreach ($cvs as $row) {
?>
<tr>
<td><?php echo $row['appID']; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['email']; ?></td>
<td><?php echo $row['contact']; ?></td>
<td><?php echo Date::format($row['date_added']) ?></td>
<td><a href="<?php echo $row['cv']?>">Download CV</a></td>
</tr>
</tbody>
<?php } ?>
not all the code but that is the section i want the link to display as you can see it is showing a link but when clicked it does not download that file from the server how do i fix this. My framework is codeigniter 3.0
Thanks for your input
Riaan