PDO prepare() method
| From: | Paul M Foster | Date: | Thu, 02 Jan 2020 20:49:53 +0000 |
| Subject: | PDO prepare() method | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-326974@lists.php.net to get a copy of this message | ||
Folks:
I know that PDO's prepare() method checks datatypes and quotes content
as needed (e.g. strings get quotes, ints don't). But according to what
people say about it, it prevents SQL injection. If this is true, then
what, besides proper value quoting, does it do to protect SQL statements
from being SQL injections? Or is proper quoting all that's necessary?
Paul
--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com