hmm habe es jetzt mal getauscht ^^
<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$titellaenge = 5;
function get_erg_liste($wid) {
$list = ''; $enar = array ( 'jpg', 'gif', 'png', 'jpeg');
$erg = db_query("SELECT
b.wid,
b.mnr,
b.map,
b.opp,
b.owp
a.game as gamepic
FROM prefix_wars a
LEFT JOIN prefix_warmaps b
ON b.wid = ".$wid);
while($row = db_fetch_assoc($erg) ) {
if ( $row['opp'] == $row['owp'] ) {
$farbe = 'FDFBB7'; #pat
} elseif ( $row['opp'] < $row['owp'] ) {
$farbe = 'C8E1B8'; #win
} elseif ( $row['opp'] > $row['owp'] ) {
$farbe = 'D8B9B9'; #los
}
foreach($enar as $v) {
if ( file_exists ( 'include/images/wars/'.$wid.'_'.$row['mnr'].'.'.$v ) ) {
$size=getimagesize('include/images/wars/'.$wid.'_'.$row['mnr'].'.'.$v);
$breite=$size[0];
$hoehe=$size[1];
$map = '<a href="#" onClick="javascript:window.open(\'include/images/wars/'.$wid.'_'.$row['mnr'].'.'.$v.'\',\'bild\',\'height='.$hoehe.',width='.$breite.'\')">'.$row['map'].'</a>';
$game = '<a href="#" onClick="javascript:window.open(\'include/images/wars/'.$wid.'_'.$row['mnr'].'.'.$v.'\',\'bild\',\'height='.$hoehe.',width='.$breite.'\')">'.$row['map'].'</a>';
// $row['map'] = '<td><img src="include/images/maps/'.$row['map'].'.jpg" width="100" height="100" border="0"></td>';
break;
}
}
$list .= '<tr>';
$list .= '<td><font color="#000000">'.$map.'</font></td>';
$list .= '<td><a href="#" onClick="javascript:window.open(\'include/images/wars/'.$wid.'_'.$row['mnr'].'.'.$v.'\',\'bild\',\'height='.$hoehe.',width='.$breite.'\')"><img src="include/images/maps/'.$row['game'].'_'.$row['map'].'.jpg" width="120" height="35" border="0"></a></td>';
// $list .= '<td><font color="#000000">'.$map.'</font></td>';
$list .= '<td>'.$row['opp'].'</td>';
$list .= '<td>'.$row['owp'].'</td>';
$list .= '</tr>';
}
return ($list);
}
kommt genau der selber fehler
soll ich dich evt mal in ICQ adden?