Escape issues - 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 issues (
/showthread.php?tid=629043)
Escape issues -
MerryDeer - 19.02.2017
Hi,
When i save i'am using escape all is good. Then i load that things, and then i want to update instantly to database, so i need to escape, or this is not nessacarry?
Re: Escape issues -
JaydenJason - 19.02.2017
Only time you'd want to escape strings is when you accept the user's input into something. If you're executing your own queries which doesn't require user input you don't need to escape it.
Re: Escape issues -
MerryDeer - 19.02.2017
I know that i have to escape when player input something. But when i load from database, i need escape too before update?
Re: Escape issues -
Vince - 19.02.2017
So you want to pull something from the database and then immediately store that same thing somewhere else in the database? What's the point?
Re: Escape issues -
vital2k - 19.02.2017
If you're loading from the database there would be no need to escape as all data in the database would have already been escaped (presumably)
Re: Escape issues -
MerryDeer - 19.02.2017
I'am using escaping in php. Like player input something i save with escaping. In other php i load that collum, because i need that value update another table collum
Re: Escape issues -
JaydenJason - 20.02.2017
Quote:
Originally Posted by MerryDeer
I'am using escaping in php. Like player input something i save with escaping. In other php i load that collum, because i need that value update another table collum
|
Show your code