Quote:
Originally Posted by Ranshand
Change.
Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `name` = '%e'", name);
To.
Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `name` = '%s'", name);
|
The '
%e' is there to prevent MySQL injection. The query is correct, there's something worng with reading the data recieved.