#1

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?
Reply
#2

Because the backslash is an escape character itself in pawn. Use 2 backslashes '\\' so it escapes itself, and actually represents a normal character.
Reply
#3

But i update this with player text, because player can write any text and then i update to him into database.
Reply
#4

That's exactly why mysql_escape_string function is created for.
Reply
#5

I'am escaping it and still problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)