diff --git a/reference/pdo/pdostatement/fetchcolumn.xml b/reference/pdo/pdostatement/fetchcolumn.xml index 60fabe32e2..1e722824f2 100644 --- a/reference/pdo/pdostatement/fetchcolumn.xml +++ b/reference/pdo/pdostatement/fetchcolumn.xml @@ -72,12 +72,11 @@ $sth = $dbh->prepare("SELECT name, colour FROM fruit"); $sth->execute(); -/* Fetch the first column from the next row in the result set */ -print("Fetch the first column from the next row in the result set:\n"); +print("Fetch the first column from the first row in the result set:\n"); $result = $sth->fetchColumn(); print("name = $result\n"); -print("Fetch the second column from the next row in the result set:\n"); +print("Fetch the second column from the second row in the result set:\n"); $result = $sth->fetchColumn(1); print("colour = $result\n"); ?> @@ -86,9 +85,9 @@ print("colour = $result\n"); &example.outputs;