SA-MP Forums Archive
Mysql_real_escape_String - 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: Mysql_real_escape_String (/showthread.php?tid=547929)



Mysql_real_escape_String - Banditukas - 26.11.2014

Hi,

Now i'am using mysql_real_escape_String when i need escape string, but i see can also use %e in query and it will make same effect. But it'is changing in using memory? i mean escaping with function takes more memory or waiting for queries completed than using %e.


Re: Mysql_real_escape_String - Jonesy96 - 26.11.2014

To be honest, I doubt it makes much difference. The same function is called, it's just in two different places.


Re: Mysql_real_escape_String - Ryz - 26.11.2014

using %e instead of mysql_real_escape_String will not make changes in memory uses
both are used to avoid sql injection.