Escape issues
#1

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?
Reply
#2



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.
Reply
#3

I know that i have to escape when player input something. But when i load from database, i need escape too before update?
Reply
#4

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?
Reply
#5

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)
Reply
#6

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
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)