möchte top downloads anzeigen lassen und wie oft es geladen wurde
hab schon .row->downs. eingefügt aber habe noch keine abfrage
<?php
# Copyright by DiCover.de; Autor Tolive
# Support für das Modul gibt es auf www.DiCover.de
$xtopdowns = '6';
defined ('main') or die ( 'no direct access' );
//-----------------------------------------------------------|
$abf = 'SELECT * FROM prefix_downloads ORDER BY id DESC LIMIT 0,6';
$erg = db_query($abf);
echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">';
$mostdowns = db_query ("SELECT * FROM prefix_downloads ORDER BY downs DESC LIMIT $xtopdowns");
while($row = db_fetch_assoc ($mostdowns)) {
while ($row = db_fetch_object($erg)) {
echo '<tr><td align="center" height="35" width="40"><img src="include/images/icons/disk.png" /></td><td><a style="font-weight:bold" href="index.php?downloads-show-'.$row->id.'">'.$row->name.'</a></td><td>'.$row->downs.'</td></tr><tr><td colspan="3" height="1" bgcolor="#cccccc"></td></tr>';
}
echo '</table>';
//-----------------------------------------------------------|
?>
Zuletzt modifiziert von xCrystalx am 25.07.2009 - 21:17:03


