Re: pdo: binding variables supplied to execute() is NotVeryUseful(tm)...
| From: | Thies C . Arntzen | Date: | Fri, 25 Mar 2005 13:46:34 +0000 |
| Subject: | Re: pdo: binding variables supplied to execute() is NotVeryUseful(tm)... | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15600@lists.php.net to get a copy of this message | ||
Am 25.03.2005 um 14:36 schrieb Jared Williams:
Can I just point out that you've just negated the whole reason for having parameters in the first place, imo.huh? just 'cuase you dislike my php-code you question the "value" of bind alltogether?
$table is just as vulnerable to an SQL injection attack, as any of the parameters where before we had parameter binding.a) there's no real way to bind table-names or column-names. b) binding is not only good against sql-injection but also for speed (if the driver supports native-bind). c) i (personally) would usually not pass unchecked user-data for table or column-names. tc