SA-MP Forums Archive
loading from database - 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: loading from database (/showthread.php?tid=632157)



loading from database - Bussyman - 09.04.2017

Hi,

When in php i load from database text, and write to another table, i need to escape first?


Re: loading from database - Vince - 09.04.2017

Yes, although consider using INSERT ... SELECT. I haven't found a case where this is actually useful because it implies storing duplicate data (which is to be avoided). Ideally you store a text once and you reference it from that one location all the time. That includes the player's name.