note 66433 added to function.pdo-query
| From: | E dot Rnie at osu1 dot php dot net | Date: | Mon, 22 May 2006 13:36:15 +0000 |
| Subject: | note 66433 added to function.pdo-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111824@lists.php.net to get a copy of this message | ||
the above example does not function well...
it just returned
(
[queryString] => "SELECT * FROM...."
)
with a trailing ->fetchAll() everthing is working fine...
the complete correct line:
foreach ($conn->query($sql)->fetchAll as $row) {
.
.
.
----
Server IP: 217.13.201.10
Probable Submitter: 85.178.21.208
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.pdo-query.php
Edit -- http://master.php.net/note/edit/66433
Del: integrated -- http://master.php.net/note/delete/66433/integrated
Del: useless -- http://master.php.net/note/delete/66433/useless
Del: bad code -- http://master.php.net/note/delete/66433/bad+code
Del: spam -- http://master.php.net/note/delete/66433/spam
Del: non-english -- http://master.php.net/note/delete/66433/non-english
Del: in docs -- http://master.php.net/note/delete/66433/in+docs
Del: other reasons-- http://master.php.net/note/delete/66433
Reject -- http://master.php.net/note/reject/66433
Search -- http://master.php.net/manage/user-notes.php