Re: Will MDB2 prepared statements protect against SQL injection?
| From: | Lorenzo Alberton | Date: | Tue, 26 Dec 2006 16:23:53 +0000 |
| Subject: | Re: Will MDB2 prepared statements protect against SQL injection? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26200@lists.php.net to get a copy of this message | ||
l Burnerheimerton wrote:
I asked earlier to compare the security of DB prepared statements to PHP prepared statements. I was advised to switch to MDB2. If I do switch, will "Prepare/execute" protect against SQL injection?yes
Please back your answer up with documentation. I am searching for definitive ways to protect against specific threats.just look at the file sources for each driver. Most of them implement native PREPAREd statements, so it's just like using PDO prepared statements. In the drivers not supporting native prepared statements, they're emulated, and the data is escaped/quoted. HTH -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store