Mysql Character ' in 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 Character ' in string (
/showthread.php?tid=511444)
Mysql Character ' in string -
Admigo - 05.05.2014
Fixed.
Re: Mysql Character ' in string -
Vince - 05.05.2014
Use '%e' instead of '%s' for strings in mysql_format. Or use myqsl_real_escape_string beforehand. Make sure to do this in all queries. If you're asking here, chances are your login system is vulnerable to SQL injection attacks.
Re: Mysql Character ' in string -
Admigo - 05.05.2014
Thanks. I will try that.