note 109900 added to pdostatement.setfetchmode

From: Date: Sat, 01 Sep 2012 20:28:28 +0000
Subject: note 109900 added to pdostatement.setfetchmode
Groups: php.notes 
Request: Send a blank email to php-notes+get-190406@lists.php.net to get a copy of this message
@ 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! ---- Server IP: 64.71.164.2 Probable Submitter: 98.162.188.22 ---- Manual Page -- http://www.php.net/manual/en/pdostatement.setfetchmode.php Edit -- https://master.php.net/note/edit/109900 Del: integrated -- https://master.php.net/note/delete/109900/integrated Del: useless -- https://master.php.net/note/delete/109900/useless Del: bad code -- https://master.php.net/note/delete/109900/bad+code Del: spam -- https://master.php.net/note/delete/109900/spam Del: non-english -- https://master.php.net/note/delete/109900/non-english Del: in docs -- https://master.php.net/note/delete/109900/in+docs Del: other reasons-- https://master.php.net/note/delete/109900 Reject -- https://master.php.net/note/reject/109900 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190406) next »