10.04.2017, 08:28
You are storing the player's name in the Query array then again formatting the SQL query in the same array meaning the name is not stored there anymore. In your query in WHERE clause, you have specified the Query string as the player's name which was reformatted that's why the query could not access the table of the specified username.
As said above, use another variable for the name or the best way; use unique ids to execute the query to handle the player's table.
Plus, you don't need 900 cell of array for that query, 145 would be enough.
Edit: If you are using R39, why are you not using mysql_format? You can use %e specifier which escapes the string directly without having to use mysql_real_escape_string.
As said above, use another variable for the name or the best way; use unique ids to execute the query to handle the player's table.
Plus, you don't need 900 cell of array for that query, 145 would be enough.
Edit: If you are using R39, why are you not using mysql_format? You can use %e specifier which escapes the string directly without having to use mysql_real_escape_string.