Im using the following code:
[/php]
But it gives this error:
Invalid query: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') VALUES ( 1 ,3 ,Mustafa ,CM ,2 ,Svenne ,FED
Someone plz help me, the things shown in the query sofar are right
Code:
[php]
"INSERT INTO attacks
(
id, attackerid, attackerstatename, attackertag, defenderid, defenderstatename, defendertag, type, losses,
)
VALUES
(
".$arr['id'].",".$arr['attackerid'].",".$arr['attackerstatename'].",".$arr['attackertag'].",".$arr['defenderid'].",".$arr['defenderstatename'].",".$arr['defendertag'].",'".$arr['type']."','".$arr['losses']."')";
But it gives this error:
Invalid query: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') VALUES ( 1 ,3 ,Mustafa ,CM ,2 ,Svenne ,FED
Someone plz help me, the things shown in the query sofar are right