";
$dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `attacktime` FROM `[clanwar]` WHERE `attack`='{$data->clan}' ORDER BY `time` DESC LIMIT 0,25");
while($info = mysql_fetch_object($dbres)) {
$result = ($info->code & 0x01 == 1) ? "verloren" : "gewonen";
$money = $info->money ;
if ($info->gewonnen ==0){
$gewonnen = "Verloren";
}
if ($info->gewonnen == 1){
$gewonnen = "Gewonnen";
}
print <<{$info->attacktime} |
{$info->defence} |
€ $info->geld |
$info->land m² |
$gewonnen |
ENDHTML;
}
print " |
\n