How to escape string
#7

As I wrote above, %e can be used for strings ONLY since it's a specifier that escapes the string directly. So you cannot use it for integer values, %d or %i are just fine for ints and they do not need to be escaped at all. Now, its up to you to separate them depending on what type of datas your table contains.

If you are using it for player name, it's fine. If you are using it for admin level, then it's wrong.
Reply


Messages In This Thread
How to escape string - by Nin9r - 16.06.2016, 09:49
Re: How to escape string - by Sime30 - 16.06.2016, 09:56
Re: How to escape string - by Sjn - 16.06.2016, 09:57
Re: How to escape string - by Nin9r - 16.06.2016, 10:00
Re: How to escape string - by Sjn - 16.06.2016, 10:02
Re: How to escape string - by Nin9r - 16.06.2016, 10:05
Re: How to escape string - by Sjn - 16.06.2016, 10:10
Re: How to escape string - by Nin9r - 16.06.2016, 10:12
Re: How to escape string - by Sjn - 16.06.2016, 10:19
Re: How to escape string - by Nin9r - 16.06.2016, 10:24
Re: How to escape string - by Stinged - 16.06.2016, 10:46
Re: How to escape string - by Nin9r - 16.06.2016, 11:16
Re: How to escape string - by Stinged - 16.06.2016, 11:32

Forum Jump:


Users browsing this thread: 2 Guest(s)