News for hackers. Stuff that matters.
Re:The last PHP wrapper for MySQL you'll ever need by PythonDeveloper on Friday November 25, 2011 @06:07PM (#3278501)
One non-obvious benefit of PDO is that it lets you separate data from the query, making it much more secure to SQL injection attacks.

Also, as a rule, never put SQL in the page you're rendering... you want it in another class, away from your code so that you only have to write it once if it's used in numerous places.

There are no comments on this comment yet.