Könnt ihr mir sagen was ich änderen muss damit ich auch die Downloads angezeigt bekomme und nicht die Hits!
<?
//Copyright by Stefan Jungbauer
//www.zocker-eppingen.de
//V 1.1
defined ('main') or die ( 'no direct access' );
echo '<center><b>New Downloads</b></center>';
$erg = db_query("SELECT prefix_downloads.cat,prefix_downloads.name,prefix_downloads.id,DATE_FORMAT(time,'%d.%m.%Y') as datum FROM prefix_downloads LEFT JOIN prefix_downcats ON prefix_downcats.id = prefix_downloads.cat WHERE ".$_SESSION['authright']." <= prefix_downcats.recht order by prefix_downloads.id DESC LIMIT 0,5");
$i = 0;
while ($row = db_fetch_object($erg)) {
$i++;
$user = $row->name;
echo'
<table width="100%" cellspacing="0" cellpadding="0" height="13">
<tr><td> '.$i.'. <a href="?downloads-show-'.$row->id.'"> '.$user.'</a></td><td> '.$row->datum.'</td></tr>
</table>';
}
echo '<center><b>Top Download</b></center>';
$a = 0;
$erg = db_query("SELECT prefix_downloads.cat,hits,prefix_downloads.name,prefix_downloads.id,DATE_FORMAT(time,'%d.%m.%Y') as datum FROM prefix_downloads LEFT JOIN prefix_downcats ON prefix_downcats.id = prefix_downloads.cat WHERE ".$_SESSION['authright']." <= prefix_downcats.recht order by hits DESC LIMIT 0,5");
while ($row = db_fetch_object($erg)) {
$a++;
$name = $row->name;
echo'
<table width="100%" cellspacing="0" cellpadding="0" height="13">
<tr><td>'.$a.'. <a href="?downloads-show-'.$row->id.'"> '.$name.'</a></td><td>'.$row->hits.'</td></tr>
</table>';
}
?>
Das ist mein Code
Edit by SLJ:
Ich habs mal in code geschrieben,...
Zuletzt modifiziert von SLJ am 04.06.2007 - 18:04:12