From f962ada7a0b6c37e13d75c3529c4d2515fb8b6c4 Mon Sep 17 00:00:00 2001 From: Christopher Kings-Lynne Date: Mon, 9 May 2005 01:36:07 +0000 Subject: [PATCH] - Fix error in example as suggested in doc comment. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@186052 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pgsql/functions/pg-fetch-object.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reference/pgsql/functions/pg-fetch-object.xml b/reference/pgsql/functions/pg-fetch-object.xml index 7043801ab4..3134c490b3 100644 --- a/reference/pgsql/functions/pg-fetch-object.xml +++ b/reference/pgsql/functions/pg-fetch-object.xml @@ -1,5 +1,5 @@ - + @@ -141,13 +141,11 @@ if (!$db_conn) { $qu = pg_query($db_conn, "SELECT * FROM books ORDER BY author"); -$row = 0; // postgres needs a row counter -while ($data = pg_fetch_object($qu, $row)) { +while ($data = pg_fetch_object($qu)) { echo $data->author . " ("; echo $data->year . "): "; echo $data->title . "
"; - $row++; } pg_free_result($qu);