How to escape string
#9

Well, it's not really needed if you are using the latter version of mysql plugin. But if you want to know, then the first method is correct. Because it first escapes the szString then you import it in the query. If you use second method then you are first sending the query then escaping the string which won't have any escaped string contained.

Keep in mind that %e specifier can only be used with mysql_format.
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)