vovandolg
08.02.2016, 16:35
В общем такой отрывок кода:
new mysql_query[110];
format(mysql_query, sizeof(mysql_query), "UPDATE `Accounts` SET `pEmail` = '%s' WHERE `Name` = '%s'",inputtext,PlayerInfo[playerid][pNames]);
mysql_function_query(connects, mysql_query, false, "", "");
И вот такая ошибка к примеру:
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 'MARINO4ka'' at line 1, , UPDATE `Accounts` SET `pEmail` = 'fkFG@slfoa\' WHERE `Name` = 'MARINO4ka', 1
Вроде бы в ячейке должно хватать значения, а вылетела ерунда какая)
new mysql_query[110];
format(mysql_query, sizeof(mysql_query), "UPDATE `Accounts` SET `pEmail` = '%s' WHERE `Name` = '%s'",inputtext,PlayerInfo[playerid][pNames]);
mysql_function_query(connects, mysql_query, false, "", "");
И вот такая ошибка к примеру:
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 'MARINO4ka'' at line 1, , UPDATE `Accounts` SET `pEmail` = 'fkFG@slfoa\' WHERE `Name` = 'MARINO4ka', 1
Вроде бы в ячейке должно хватать значения, а вылетела ерунда какая)