pg_fetch_array() - Mailing list pgsql-php

From Thorsten Haude
Subject pg_fetch_array()
Date
Msg-id 20021218203832.GI1604@eumel.yoo.local
Whole thread Raw
Responses Re: pg_fetch_array()
Re: pg_fetch_array()
Re: pg_fetch_array()
Re: pg_fetch_array()
List pgsql-php
Hi,

I want to read an unknown number of rows from a select result. I try
this:
- - - Schnipp - - -
$result = pg_exec($dbh, $statement);
$row = 0;
while ($item = pg_fetch_array($result, $row, PGSQL_ASSOC))
{
    doSomething($item);
    $row++;
}
- - - Schnapp - - -

However, I get an error telling me that PHP is "Unable to jump to row
[$nRows + 1] on PostgreSQL result index 3 in [$file] on line [$line]

What do I miss?


tia,
Thorsten
--
Denn ein Tyrann ist nicht, wenn die Masse nicht geduldig stillhält.
    - Kurt Tucholsky

pgsql-php by date:

Previous
From: Jesus Rios
Date:
Subject: Re: problems when i try to connect to my Databasse
Next
From: Ray Hunter
Date:
Subject: Re: problems when i try to connect to my Databasse