note 109900 deleted from pdostatement.setfetchmode by danbrown
| From: | danbrown@php.net | Date: | Sat, 01 Sep 2012 21:15:12 +0000 |
| Subject: | note 109900 deleted from pdostatement.setfetchmode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190409@lists.php.net to get a copy of this message | ||
Note Submitter: RANGEL
----
@ ronhenry at netspeed dot com dot au
Regarding the example below and to clear misleading information as he says "This may be
specified in setFetchMode() for prepared statements, or fetch*() otherwise." and as shown by
duplicated examples using $stmt->setFetchMode with ->prepare() and not using it if you
->query().
You can ALWAYS use $stmt->setFetchMode() since BOTH ->prepare() and ->query() ALWAYS
return PDOStatement Object!