03.11.2016, 20:04
try doing dat sir:
then
however in your code you was formating string and using name instead of string .-.
its supposed to be:
PHP код:
mysql_escape_string(name, string);
PHP код:
mysql_format(mysql, query, sizeof(query), "SELECT `Username`, `Registration`, `IP`, `Score` FROM `Users` WHERE `Username` LIKE '%%%s%%' LIMIT %d", string, amount);
print(query);
Код:
format(string, sizeof(string), "%%%s%%", name); mysql_format(mysql, query, sizeof(query), "SELECT `Username`, `Registration`, `IP`, `Score` FROM `Users` WHERE `Username` LIKE '%e' LIMIT %d", name, amount); print(query);
PHP код:
format(string, sizeof(string), "%%%s%%", name);
mysql_format(mysql, query, sizeof(query), "SELECT `Username`, `Registration`, `IP`, `Score` FROM `Users` WHERE `Username` LIKE '%e' LIMIT %d", string, amount);
print(query);