<?php
$cat = $_GET[cat];
$file = $_GET['file'];
$abfrage = "SELECT * FROM downloads WHERE Kategorie = '$cat'";
$ergebnis = mysql_query($abfrage);
if (isset($file))
{
$result = mysql_query("SELECT Link FROM downloads WHERE id = $file");
$filename = mysql_result($result, 0); // Dateiname aus der
DB holen
//@header('Content-Type: image/gif', true);
@header('Content-Length: ' . filesize($filename));
readfile($filename);
exit;
}
while($row = mysql_fetch_object($ergebnis))
{
echo '
<table class="tablesolid" width="100%" border="0">
<tr>
<td>[b]Betriebssysteme:[/b]</td>
<td>'.$row->Systeme.'</td>
</tr>
<tr>
<td>[b]Version:[/b]</td>
<td>'.$row->Version.'</td>
</tr>
<!--<tr>
<td>[b]Download[/b]</td>
<td>[
url="'.$row->Link.'"]Link[/
url]
</td>
</tr>-->
<tr>
<td>[b]Link[/b]</td>
<td>
<1-- Ab hier das Problem -->
[
url="./?p=dloads&cat='.$_GET[cat].'&file='.$row->id.'"]Link[/
url]</td>
<td align="right" width=20%">
</td>
</tr>
</table>
<div style="margin-bottom: 1px;"></div>';
}
?>