Hello,
I need help for my MySQL query: when i want to save a sentence with ' , there is a problem with SQL_EscapeString (and i must use this to protect query).
PHP Code:
Format(sentence, sizeof(sentence), "Hello! I'm a man!");
SQL_EscapeString(H_Database, sentence, sentence, sizeof(sentence));
new String:query[512];
Format(query, sizeof(query), "INSERT INTO bdd_sentence(ID, Sentences) VALUES ('%d', '%s')", ID, sentence);
SQL_TQuery(H_Database, T_CheckSQLCallback, query);
In my database, i have: Hello! I///////////////
Thank you in advance