svn: /phpdoc/en/trunk/reference/pdo/pdostatement/ nextrowset.xml

From: Date: Tue, 14 Sep 2010 09:41:26 +0000
Subject: svn: /phpdoc/en/trunk/reference/pdo/pdostatement/ nextrowset.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7102@lists.php.net to get a copy of this message
rquadling Tue, 14 Sep 2010 09:41:26 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=303356 Log: Correct example to fetch all rows from rowset. Fix #52834 Bug: http://bugs.php.net/52834 (Open) Mistake in example: all rows should be fetched from rowset Changed paths: U phpdoc/en/trunk/reference/pdo/pdostatement/nextrowset.xml Modified: phpdoc/en/trunk/reference/pdo/pdostatement/nextrowset.xml =================================================================== --- phpdoc/en/trunk/reference/pdo/pdostatement/nextrowset.xml 2010-09-14 06:16:30 UTC (rev 303355) +++ phpdoc/en/trunk/reference/pdo/pdostatement/nextrowset.xml 2010-09-14 09:41:26 UTC (rev 303356) @@ -48,7 +48,7 @@ $stmt = $conn->query($sql); $i = 1; do { - $rowset = $stmt->fetch(PDO::FETCH_NUM); + $rowset = $stmt->fetchAll(PDO::FETCH_NUM); if ($rowset) { printResultSet($rowset, $i); }

« previous php.doc.cvs (#7102) next »