SA-MP Forums Archive
Convert to mysql from sqlite - 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: Convert to mysql from sqlite (/showthread.php?tid=569198)



Convert to mysql from sqlite - Alex_T - 28.03.2015

I need to convert these from sqlite to mysql, I am using BlueG's mysql include R39.

PHP Code:
sqlite_escape_string(sname), fentxfentyfentzientfeeientworldientintfentafexitxfexityfexitziexitintfexitaiexitwilocked);
db_free_result 



Re: Convert to mysql from sqlite - Konstantinos - 28.03.2015

Replace the placeholder '%s' to '%e' and just use sname as argument and it'll escape the string itself.