ich bekomme die fehlermeldung
Parse error: syntax error, unexpected T_CASE in /srv/www/vhosts/co/httpdocs/themes/ct-blue/functions.php on line 877
das wäre die zeile von der zweiten Case anweisung
case ( $wert <= $max1 AND $wert >= $min1 ):
Code:
function mx_rangzahl()
{
if (MX_IS_USER) {
$max0 ="0";
$min0 ="24";
$max1 ="25";
$min1 ="100";
$max2 ="199";
$min2 ="200";
$max3 ="299";
$min3 ="300";
$max4 ="399";
$min4 ="400";
$max5 ="499";
$min5 ="500";
include("modules/tm_statistik/daten.php");
$wert = $gesamtbeitraege+$numbilderfrei+$numgamepunkte;
switch ( TRUE )
{
case ( $wert <= $max0 AND $wert >= $min0 ):
$out = '';
$out = ' '.mxCreateImage('/images/glitzer/0.gif').'
';
return $out;
}
break 1;
case ( $wert <= $max1 AND $wert >= $min1 ):
$out = '';
$out = ' '.mxCreateImage('/images/glitzer/1.gif').'
';
return $out;
}
break 2;
case ( $wert <= $max2 AND $wert >= $min2 ):
$out = '';
$out = ' '.mxCreateImage('/images/glitzer/2.gif').'
';
return $out;
}
break 3;
case ( $wert <= $max3 AND $wert >= $min3 ):
$out = '';
$out = ' '.mxCreateImage('/images/glitzer/3.gif').'
';
return $out;
}
break 4;
case ( $wert <= $max4 AND $wert >= $min4 ):
$out = '';
$out = ' '.mxCreateImage('/images/glitzer/4.gif').'
';
return $out;
}
break 5;
case ( $wert <= $max5 AND $wert >= $min5 ):
$out = '';
$out = ' '.mxCreateImage('/images/glitzer/5.gif').'
';
return $out;
}
break 6;
}