Req #63877 [Com]: Mistake in the example
| From: | mail+php at requinix dot net | Date: | Mon, 31 Dec 2012 03:41:34 +0000 |
| Subject: | Req #63877 [Com]: Mistake in the example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9332@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63877&edit=1
ID: 63877
Comment by: mail+php at requinix dot net
Reported by: faror91 at gmail dot com
Summary: Mistake in the example
Status: Open
Type: Feature/Change Request
Package: Documentation problem
PHP Version: 5.5.0alpha2
Block user comment: N
Private report: N
New Comment:
http://php.net/manual/fr/pdostatement.fetchcolumn.php
The English version has the "1".
Previous Comments:
------------------------------------------------------------------------
[2012-12-31 01:43:16] faror91 at gmail dot com
Description:
------------
I'm sorry, I don't speak english very well, but I think there is a mistake in the
"Example #1 Return first column of the next row" in the french version of the web site
this isn't
"print("Récupère la deuxième colonne depuis la ligne suivante d'un jeu de
résultats :\n");
$result = $sth->fetchColumn();
print("couleur=$result\n");"
it lacks the number "1" as parameter of fetchColumn()
So this is:
print("Récupère la deuxième colonne depuis la ligne suivante d'un jeu de
résultats :\n");
$result = $sth->fetchColumn(1);
print("couleur=$result\n");
Thank you for changing the script
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63877&edit=1