Re: portiny mysql to postgres, pg_fetch_array woes

Поиск
Список
Период
Сортировка
От Helge Bahmann
Тема Re: portiny mysql to postgres, pg_fetch_array woes
Дата
Msg-id Pine.LNX.4.21.0111081505100.15958-100000@lothlorien.stunet2.tu-freiberg.de
обсуждение исходный текст
Ответ на portiny mysql to postgres, pg_fetch_array woes  (ben palmer <ben@thatgame.com>)
Список pgsql-novice
On Thu, 8 Nov 2001, ben palmer wrote:

> code is something like this
> while ($URow=pg_fetch_array($Result,$i++))
> {
> }

[snip]

> how do I prevent these warnings? Without having to test the  number of
> rows in result.

this way:

while ($URow=@pg_fetch_array($Result,$i++))
{
}

(note the @ before pg_fetch_array)

Regards
--
Helge Bahmann <bahmann@math.tu-freiberg.de>             /| \__
Network admin, systems programmer                      /_|____\
                                                     _/\ |   __)
$ ./configure                                        \\ \|__/__|
checking whether build environment is sane... yes     \\/___/ |
checking for AIX... no (we already did this)            |


В списке pgsql-novice по дате отправления:

Предыдущее
От: ben palmer
Дата:
Сообщение: portiny mysql to postgres, pg_fetch_array woes
Следующее
От: Isaac Sparrow
Дата:
Сообщение: Re: X manager?