|
|
|
|
|
by Macha
3465 days ago
|
|
So, let's drop PHP for a moment. If you were writing a database library in say Java, how would you know or prevent the user passing you a concatenated string over a string literal? Is it Java's fault that you can't (excepting major bytecode hackery maybe?)? |
|
Or just use an ORM. They have a bad reputation, but SQLAlchemy + Python is an awesome combo. But because of language features, PHP ORMs aren't quite as seamless.
[0] https://secure.php.net/manual/en/pdo.prepared-statements.php
[1] https://secure.php.net/manual/en/pdo.prepare.php