Oct 08 2011, 07:46 PM
Still cannot properly download files from BTCS3.
Click on a category where there is a file uploaded, and nothing displays. Went to FTP to make sure file was uploaded correctly, it was and file is viewable. What do?
Code:
<br>
<center><h2>Downloads</h2></center>
<?php
$dlcat = textFilter(getDownloadCatInfo("name", $dl));
echo "
<table align='center' border='1' cellspacing='0' cellpadding='2' width='500' bordercolor='$bgcolor'>
<tr>
<td class='titles' background='themes/$theme/$bgimage' bordercolor='$bordercolor' align='center'><b>$dlcat</b></td>
</tr>
<tr>
<td class='main' bordercolor='$bordercolor' style='border-top-width: 0px'>
<br>
<blockquote>
";
$query = "SELECT * FROM {$dbprefix}downloads WHERE type = '$dl' ORDER BY name";
$result = mysql_query($query)
or die(mysql_error());
while($row = mysql_fetch_array($result))
{
extract($row);
foreach($row AS $key => $value) { ${$key} = textFilter($value); }
$dispName = addslashes(textFilter(getMemberInfoByID("username", $poster)));
$dispRank = addslashes(textFilter(getRankInfo("name", getMemberInfoByID("rank", $poster))));
$dispDate = date("m/d/y", $dateadded);
echo "
<b>File Name:</b> $name<br>
<b>Posted By:</b> <a href='index.php?p=Profile&user=$dispName'>$dispRank $dispName</a><br>
<b>Date Posted:</b> $dispDate<br>
<b>Description:</b><br>
$description<br><br>
<b><a href="$filename">DOWNLOAD NOW!</a></b>
<hr size='1' width='500' color='$bordercolor'><br>
";
}
echo "
</blockquote>
</td>
</tr>
</table>
";
?>
Click on a category where there is a file uploaded, and nothing displays. Went to FTP to make sure file was uploaded correctly, it was and file is viewable. What do?
Game, The