ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
You need the extension in the table or file handling wont work, you dont need it displayed in the download link
<?php foreach($files_array as $key=>$val) { echo '<tr><td><a href="dlc_download.php?file='.urlencode($val).'">'.substr($val, 0, strlen($val -4)).'</a></td>
<td><span class="download-count">'.(int)$file_downloads[$val].'</span></td>;
</tr>'; } ?>
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376