note 120231 added to pdostatement.fetchcolumn

From: Date: Mon, 28 Nov 2016 18:53:33 +0000
Subject: note 120231 added to pdostatement.fetchcolumn
Groups: php.notes 
Request: Send a blank email to php-notes+get-207708@lists.php.net to get a copy of this message
@gaiusgracchus33 You read that right, and it is the correct behavior of the fetchColumn method. If you call it you'll get the value of only 1 column in the current row, after that the next call to any of the 4 PDO fetch methods (fetch, fetchAll, fetchColumn, fetchObject) will have advanced onto the next row in the result set and will be fetching data from that row instead. ---- Server IP: 72.52.91.14 Probable Submitter: 213.66.225.189 ---- Manual Page -- http://php.net/manual/en/pdostatement.fetchcolumn.php Edit -- https://master.php.net/note/edit/120231 Del: integrated -- https://master.php.net/note/delete/120231/integrated Del: useless -- https://master.php.net/note/delete/120231/useless Del: bad code -- https://master.php.net/note/delete/120231/bad+code Del: spam -- https://master.php.net/note/delete/120231/spam Del: non-english -- https://master.php.net/note/delete/120231/non-english Del: in docs -- https://master.php.net/note/delete/120231/in+docs Del: other reasons-- https://master.php.net/note/delete/120231 Reject -- https://master.php.net/note/reject/120231 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207708) next »