Hi
mir ist aufgefallen das die Award liste durcheinander ist... kann man die nach datum sortieren?
Danke schon mal
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | <?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $title = $allgAr [ 'title' ]. ' :: Awards' ; $hmenu = 'Awards' ; $design = new design ( $title , $hmenu ); $design ->header(); $tpl = new tpl ( 'awards.htm' ); $tpl ->out(0); $class = 'Cnorm' ; $erg = db_query( "SELECT platz, text, wofur, team, bild, DATE_FORMAT(time, '%d.%m.%Y') as time FROM `prefix_awards` ORDER BY time DESC" ); while ( $row = db_fetch_assoc( $erg ) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row [ 'bildutime' ] = '<span style="float: left; margin-right: 10px;"><img src="' . $row [ 'bild' ]. '" alt="' . $row [ 'wofur' ]. '" title="' . $row [ 'wofur' ]. '"/><br /><font class="smalfont">' . $row [ 'time' ]. '</font></span><br />' ; } else { $row [ 'bildutime' ] = $lang [ 'date' ]. ': ' . $row [ 'time' ]. '<br />' ; } $row [ 'class' ] = $class ; $tpl ->set_ar_out( $row ,1); } $tpl ->out(2); $design ->footer(); ?> |
1 | SELECT platz, text, wofur, team, bild, DATE_FORMAT(time, '%d.%m.%Y') as time FROM `ic1_awards` ORDER BY `ic1_awards`.`time` DESC |
Geschlossen | ||
![]() |
Zurück zu Fehlersuche und Probleme |