Box 1 (Star Wars Battlefront II 1.0)
<?php
# Copyright by Manuel Staechele
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$farbe = '';
$farb2 = '';
echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">';
$erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" AND game = "Star Wars Battlefront II 1.0" ORDER BY datime DESC LIMIT 3');
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';
} elseif ($row->wlp == 2) {
$bild = 'include/images/icons/los.gif';
} elseif ($row->wlp == 3) {
$bild = 'include/images/icons/pad.gif';
}
echo '<tr><td>'.get_wargameimg($row->game).'</td><td align="left">';
echo '<a href="index.php?wars-more-'.$row->id.'">';
echo $row->owp.' '.$lang['at2'].' '.$row->opp.' - '.$row->tag.'</a></td><td><img src="'.$bild.'"></td></tr>';
}
echo '</table>';
?>
Box 2 (Star Wars Battlefront II 1.1)
<?php
# Copyright by Manuel Staechele
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$farbe = '';
$farb2 = '';
echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">';
$erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" AND game = "Star Wars Battlefront II 1.1 " ORDER BY datime DESC LIMIT 3');
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';
} elseif ($row->wlp == 2) {
$bild = 'include/images/icons/los.gif';
} elseif ($row->wlp == 3) {
$bild = 'include/images/icons/pad.gif';
}
echo '<tr><td>'.get_wargameimg($row->game).'</td><td align="left">';
echo '<a href="index.php?wars-more-'.$row->id.'">';
echo $row->owp.' '.$lang['at2'].' '.$row->opp.' - '.$row->tag.'</a></td><td><img src="'.$bild.'"></td></tr>';
}
echo '</table>';
?>
Jeweils einen Code in eine Datei und z.B. als lastwars1.php und kastwars2.php speichern
Im Adminbereich die Spiele dann auch wie in deinem vorherigen Post benennen und schon sollte es gehen.
Die Boxen zeigen dann jeweils die drei aktuellsten Lastwars des jeweiligen Spiels an.