Ich habe es nun mal so hinbekommen. Aber manche sachen liest die box irgendwie nicht aus der DB. vielleicht könnt Ihr mir dabei nochmal helfen.
Hier die BOX:
<?php
# Copyright by: Manuel
# Support www.ilch.de
$akttime = date('Y-m-d');
$query = db_query("SELECT DATE_FORMAT(datime,'%d.%m.%Y') as wardate, DATE_FORMAT(datime, '%H:%i') as wartime, a.id as id, a.game as sqloutgame, a.mod as sqloutmod, a.oid, a.tid, a.mtyp as mtyp, a.datime as datime, c.name as team1, b.name as team2, b.land as land, c.logo as teamlogo, b.logo as logo, b.tag as tag
FROM prefix_wars a
LEFT JOIN prefix_opponents b ON a.oid= b.oid
LEFT JOIN prefix_groups c ON a.tid= c.id
WHERE datime > ".date("Y-m-d")." AND status = 2 ORDER by datime ASC LIMIT 1");
$now = date("Y")+date("m")+date("d");
defined ('main') or die ( 'no direct access' );
$farbe = '';
$farb2 = '';
echo '<div class="box-content-top">';
$erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 5');
while ($row = db_fetch_object($erg) ) {
$row->tag = ( empty($row->tag) ? $row->gegner : $row->tag );
if ($row->wlp == 1) {
$bild = 'include/images/icons/win.gif';
$Color= '#0C0';
} elseif ($row->wlp == 2) {
$bild = 'include/images/icons/los.gif';
$Color= '#ff0000';
} elseif ($row->wlp == 3) {
$bild = 'include/images/icons/pad.gif';
$Color= '#ffde00';
}
$row->tag = get_opponent_details('tag', $row->oid);
echo '
<a href="index.php?wars-more-'.$row->id.'">
<div class="next-match-info">
<div class="match-team">
BRE4THLESS <span class="match-vs">VS</span> ' . $row->team2 . '
<div class="match-game">
' .$row->wardate . ', ' . $row->sqloutgame . ' - ' . $row->mtyp . ' (' . $row->sqloutmod . ')
</div>
</div>
<div class="match-result">
<span style="color: '.$Color.' ;">'.$row->owp.':'.$row->opp.'</span>
</div>
<div class="clear"></div>
</div>
</a>
';
}
echo '</div>';
?>
So sieht es aktuell aus:
So sollte es aussehen:
Es fehlt eigentlich soweit ich das sehe wardate, sqloutgame, sqloutmod und team2.
Wäre schön wenn Ihr mir sagen könntet was ich falsch gemacht habe, bei der nextwarsbox geht es.