php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #1435 pg_fetch_row does not iterate.
Submitted: 1999-05-21 08:16 UTC Modified: 1999-05-28 07:54 UTC
From: papo at dcentral dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.7 OS: Linux Slakware 3.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: papo at dcentral dot com
New email:
PHP Version: OS:

 

 [1999-05-21 08:16 UTC] papo at dcentral dot com
Hi:

There is no way to iterate using pg_fetch_row, the
function does require to enter the two parameters, 
the $results pointer and the row number.  The only
way to iterate is determining the amount of rows first
and then iterating through them.

I have also used odbc_fetch_row and it lets
you iterate.

Regards,

Luis Anaya

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-28 07:54 UTC] sas at cvs dot php dot net
Where is the problem? Use pg_num_rows to determine the number of returned rows. See http://www.php.net/manual/ref.pgsql.html for more information..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 08:01:27 2024 UTC