';
while($ds=mysql_fetch_array($ergebnis)) {
$date=date("d.m", $ds[date]);
$homescr=array_sum(explode("||", $ds[homescore]));
$oppscr=array_sum(explode("||", $ds[oppscore]));
if($homescr>$oppscr) $result=''.$homescr.':'.$oppscr.'';
elseif($homescr<$oppscr) $result=''.$homescr.':'.$oppscr.'';
else $result=''.$homescr.':'.$oppscr.'';
$resultID=$ds[cwID];
$gameicon="images/games/";
if(file_exists($gameicon.$ds[game].".gif")) $gameicon = $gameicon.$ds[game].".gif"; else $gameicon = $gameicon.$ds[game].".jpg";
eval ("\$results = \"".gettemplate("results")."\";");
echo $results;
}
echo'';
?>