möchte top downloads anzeigen lassen und wie oft es geladen wurde
hab schon .row->downs. eingefügt aber habe noch keine abfrage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <?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