Hello,
I really don't know wheres the syntax error.. checked everything but didnt find the error.
I hope someone can help..
Error:
Line 1049 of guilds.php
I really don't know wheres the syntax error.. checked everything but didnt find the error.
I hope someone can help..
Error:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 ')' at line 1' in C:\xampp_neu\xampp\htdocs\guilds.php:1049 Stack trace: #0 C:\xampp_neu\xampp\htdocs\guilds.php(1049): PDO->query('INSERT INTO gui...') #1 C:\xampp_neu\xampp\htdocs\index.php(179): include('C:\xampp_neu\xa...') #2 {main} thrown in C:\xampp_neu\xampp\htdocs\guilds.php on line 1049
Line 1049 of guilds.php
Code:
$SQL->query('INSERT INTO guild_members (player_id, rank_id, nick) VALUES ('.$player->getID().', '.$rank->getID().', '.$empty.')');