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);