note 79841 added to function.pdostatement-fetchall
| From: | donovan at donovanwalker dot com | Date: | Fri, 14 Dec 2007 20:15:38 +0000 |
| Subject: | note 79841 added to function.pdostatement-fetchall | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133482@lists.php.net to get a copy of this message | ||
fetchAll does NOT return all rows. It returns only the 'remaining' rows.
if execute() is run, and there are n rows in the result set, and
fetch() is called m times, a subsequent call to fetchAll() only returns rows (m+1)-n
if fetch all is called more than one time, every time after the first it will return an empty array.
end of line....
----
Server IP: 217.160.250.20
Probable Submitter: 198.144.1.78
----
Manual Page -- http://www.php.net/manual/en/function.pdostatement-fetchall.php
Edit -- https://master.php.net/note/edit/79841
Del: integrated -- https://master.php.net/note/delete/79841/integrated
Del: useless -- https://master.php.net/note/delete/79841/useless
Del: bad code -- https://master.php.net/note/delete/79841/bad+code
Del: spam -- https://master.php.net/note/delete/79841/spam
Del: non-english -- https://master.php.net/note/delete/79841/non-english
Del: in docs -- https://master.php.net/note/delete/79841/in+docs
Del: other reasons-- https://master.php.net/note/delete/79841
Reject -- https://master.php.net/note/reject/79841
Search -- https://master.php.net/manage/user-notes.php