Hallo,
ich bekomme die Fehlermeldung:
Bei folgendem Code:
ich bekomme die Fehlermeldung:
Parse error: parse error, unexpected '[' in C:\Inetpub\vhosts\scheissplesk.de\httpdocs\statscod4\statslog2.php on line 13
PHP-Code:
$abfrage = mysql_query("SELECT * FROM t1_cod4_v2_kills") OR die(mysql_error());
while($row = mysql_fetch_array($abfrage))
{
if($row[1] != $row[2] && $row[1] != '0' && $row[5] != 'MELEE')
{
$kills[] = 'UPDATE t1_cod4_v2_players SET players_kill_weapon'.$row[3].' =
players_kill_weapon'.$row[3].' + 1 WHERE (players_key = '.$row[1].';'; //ZEILE 13
}
if(row[5] != 'MELEE')
{
$kills[] = 'UPDATE t1_cod4_v2_players SET players_opfer_weapon'.$row[3].' =
players_opfer_weapon'.$row[3].' + 1 WHERE (players_key = '.$row[2].';';
}
if(row[4] != 'none')
{
$kills[] = 'UPDATE t1_cod4_v2_players SET players_opfer_zone'.$row[4].' =
players_opfer_zone'.$row[4].' + 1 WHERE (players_key = '.$row[2].';';
}
if($row[1] != $row[2] && $row[1] != '0' && row[4] != 'none')
{
$kills[] = 'UPDATE t1_cod4_v2_players SET players_kill_zone'.$row[4].' =
players_kill_zone'.$row[4].' + 1 WHERE (players_key = '.$row[1].';';
}
$kills[] = 'UPDATE t1_cod4_v2_players SET players_opfer_mod'.$row[5].' =
players_opfer_mod'.$row[5].' + 1 WHERE (players_key = '.$row[2].';';
if($row[1] != $row[2] && $row[1] != '0')
{
$kills[] = 'UPDATE t1_cod4_v2_players SET players_kill_mod'.$row[5].' =
players_kill_mod'.$row[5].' + 1 WHERE (players_key = '.$row[1].';';
}
}
Kommentar