Posts: 534
Threads: 265
Joined: Jul 2014
Hi,
When send mysql_query("UPDATE ..."); when i update string with this '\' without '' then i get mysql error. Why mysql_real_escape_string don't escape this?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Because the backslash is an escape character itself in pawn. Use 2 backslashes '\\' so it escapes itself, and actually represents a normal character.
Posts: 534
Threads: 265
Joined: Jul 2014
But i update this with player text, because player can write any text and then i update to him into database.
Posts: 84
Threads: 7
Joined: Aug 2013
Reputation:
0
That's exactly why mysql_escape_string function is created for.
Posts: 534
Threads: 265
Joined: Jul 2014
I'am escaping it and still problem.