Preventing mysql Injection
#1

Hi.

How to prevent Mysql Injection?

I have to use mysql_escape_string() or I can simply do something like this:

PHP код:
format(Querysizeof(Query), "SELECT * FROM `users` WHERE `Nome` = '%e'"name); 
Thank you for the help
Reply
#2

Use %e with mysql_format, %q with format.
Reply
#3

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Use %e with mysql_format, %q with format.
Using mysql_escape_string() it's the same thing of using %q instead of %s, right?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)