mysql_real_escape_string
#1

Hi,

Can i use mysql_real_escape_string, and is it will escape string, when i use it in Mysql BlueG R35 threaded plugin?
Reply
#2

You should only escape strings when you input/pass as an argument a string to a query to avoid from being victim of SQL Injection. However, I recommend you to use mysql_format instead which does pretty much the same but it's more convinient than using mysql_real_escape_string all the time.
Reply
#3

Thanks so much. And i want to ask what is difference between threaded and non-threaded queries?
Reply
#4

The difference it said to this post: http://forum.sa-mp.com/showpost.php?...04&postcount=3

And yes, it's recommended NOT to use non-threaded queries. Use threaded queries or ORM which are both faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)