SA-MP Forums Archive
\ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: \ (/showthread.php?tid=549239)



\ - Banditukas - 05.12.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?


Re: \ - Mauzen - 05.12.2014

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


Re: \ - Banditukas - 05.12.2014

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


Re: \ - theYiin - 05.12.2014

That's exactly why mysql_escape_string function is created for.


Re: \ - Banditukas - 05.12.2014

I'am escaping it and still problem.