php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63877 [FR] Mistake in the example
Submitted: 2012-12-31 01:43 UTC Modified: 2013-01-08 10:35 UTC
From: faror91 at gmail dot com Assigned: yannick (profile)
Status: Closed Package: Translation problem
PHP Version: 5.5.0alpha2 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: faror91 at gmail dot com
New email:
PHP Version: OS:

 

 [2012-12-31 01:43 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-31 03:41 UTC] mail+php at requinix dot net
http://php.net/manual/fr/pdostatement.fetchcolumn.php

The English version has the "1".
 [2013-01-08 03:06 UTC] aharvey@php.net
-Summary: Mistake in the example +Summary: [FR] Mistake in the example -Type: Feature/Change Request +Type: Documentation Problem -Package: Documentation problem +Package: Translation problem
 [2013-01-08 10:34 UTC] yannick@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&revision=329016
Log: Fix bug #63877
 [2013-01-08 10:35 UTC] yannick@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2013-01-08 10:35 UTC] yannick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: yannick
 [2020-12-30 12:49 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=0d4b531f8011ba902745c897e629ab2d987bd849
Log: Fix bug #63877
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 01:01:30 2024 UTC