2 ms·
The old php mysql_* functions have become notorious for their vulnerability to SQL injection[1]. In no small part because novice developers also have a tendenc
by krapp 13y ago
The old php mysql_* functions have become notorious for their vulnerability to SQL injection[1].
In no small part because novice developers also have a tendency to build queries directly out of $_GET parameters.
While PDO and parameterized queries aren't a silver bullet, simple strings as queries are just a nightmare to do properly.[2]
[1] http://stackoverflow.com/questions/60174/how-to-prevent-sql-injection-in-php http://stackoverflow.com/questions/60174/how-to-prevent-sql-...
[2] http://www.youtube.com/watch?v=o4dJ7hdA8fs http://www.youtube.com/watch?v=o4dJ7hdA8fs