protect SQL
#1

In my GM use a SQLite database, how can I protect it from sql injection?
Reply
#2

mysql_real_escape_string and keeping your variable sizes as short as they need to be. Also adding slashes and dont use varchar for an int and that kind of stuff.
Reply
#3

Quote:

mysql_real_escape_string

under which callback I put it?
Reply
#4

Where you get your input. It is being used on the string that you send to the database.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)