How do you prevent MySQL Injections?
#1

Hi, I am a little confused on how to prevent MySQL injections, in PAWN.

I have tried looking on the MySQL page, but couldn't find it. (If you have a link, please provide).

Could someone tell me how to do it, as an example, maybe OnDialogReponse; with inputtext?

Thanks.
Reply
#2

I would like to know too.
Reply
#3

Oh Nvm,

@ Danielo, use the function
pawn Код:
mysql_real_escape_string(const str[], dest[]);
Just use it before a mysql_query, where someone enters a text/number etc into the script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)