pg_fetch_array()

Поиск
Список
Период
Сортировка
От Thorsten Haude
Тема pg_fetch_array()
Дата
Msg-id 20021218203832.GI1604@eumel.yoo.local
обсуждение исходный текст
Ответы Re: pg_fetch_array()  (Harry Waddell <waddell@caravan.com>)
Re: pg_fetch_array()  ("scott.marlowe" <scott.marlowe@ihs.com>)
Re: pg_fetch_array()  ("scott.marlowe" <scott.marlowe@ihs.com>)
Re: pg_fetch_array()  (Thorsten Haude <postgresql@thorstenhau.de>)
Список 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 по дате отправления:

Предыдущее
От: Jesus Rios
Дата:
Сообщение: Re: problems when i try to connect to my Databasse
Следующее
От: Ray Hunter
Дата:
Сообщение: Re: problems when i try to connect to my Databasse