25.12.2014, 11:35
Добрый день!
Как можно послать запрос в БД с оператором LIKE?
Выводит в mysql log
Как можно послать запрос в БД с оператором LIKE?
Код:
mysql_format(connects,mysqlquery, sizeof(mysqlquery), "SELECT * FROM `connect` WHERE `Name` LIKE '%%e%'",tmp); mysql_function_query(connects,mysqlquery,true,"GetPlayerMySQLID","d",playerid);
Код:
[13:51:02] [ERROR] mysql_format - invalid format specifier "%'" [13:51:02] [ERROR] CMySQLQuery::Execute[GetPlayerMySQLID(d)] - (error #1064) 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 ''%s' at line 1