03.11.2016, 19:57
Hey guys, I want to withdraw all accounts which contains the following entered name, I tried using '%%%e%%' and it didn't go well.
I used a regular format and inserted it into mysql format, here is my code
How can I solve this ?
Here is the query for the `name` - "erer":
I used a regular format and inserted it into mysql format, here is my code
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", name, amount);
print(query);
Here is the query for the `name` - "erer":
Код:
SELECT `Username`, `Registration`, `IP`, `Score` FROM `Users` WHERE `Username` LIKE 'erer' LIMIT 2