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: escape string (
/showthread.php?tid=609059)
escape string -
Nin9r - 08.06.2016
Hello. I want to know if which type is better one?
Код HTML:
mysql_real_escape_string(inputtext, inputtext);
format(PlayerData[playerid][pPassword], 255, "%s", inputtext);
or
Код HTML:
mysql_real_escape_string(inputtext, inputtext2);
format(PlayerData[playerid][pPassword], 255, "%s", inputtext2);
It is the same? Can I use the same string to escape?
Re: escape string -
itsCody - 08.06.2016
easier to use %e in mysql_format, but it depends on which version you're on.
Re: escape string -
Nin9r - 08.06.2016
Ok, those models are the same thing?