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 |
<?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' ); if ($row['bild'] != '' AND trim($row['bild']) != 'http://') { $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(); ?>
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 |