This is a great script and works well. I added two extra fields, description and image. And I changed the echo so that it should also echo the descriptiona and image.
Note, I have changed table and column names for my use but they still worked fine. I also added
$dld_description =$row["dld_description"];
$dld_image =$row["dld_image"];
to
while ($row=mysql_fetch_array($result))
{
$id = $row["id"];
$dld_file_name = $row["dld_file_name"];
$dld_file_url = $row["dld_file_url"];
$dld_count =$row["dld_count"];
in view.php. The file name shows up, the download link works and it also shows the number of downloads, but it wont display the description or image, this is my echo code:
echo "<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td width=155><div align=center class=body>Download ID: $id</div></td>
<td class=bold>$dld_file_name</td>
</tr>
<tr>
<td><div align=center><img src=$dld_image></div></td>
<td class=body>$dld_description</td>
</tr>
<tr>
<td><div align=center class=body><a href=includes/download.php?id=$id>Click Here To Download</a></div></td>
<td><div align=right class=body>Number of Downloads: $dld_count</div></td>
</tr>
</table><Br>";
How can I get it to show the description and image. Thanks.
-Adrian