Forum Moderators: coopster
$XY = $X.".".$Y;
//Construct SQL String
$insertSQL = sprintf("INSERT INTO Realms (Name, X, Y, ID, XY) VALUES (%s, %s, %s, %s, %s)",
$Name,
$X,
$Y,
$ID,
$XY);
And the error is:
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 ' 0.0)' at line 1
So, it's basically ending my string at the $XY variable. What gives?