Re: portiny mysql to postgres, pg_fetch_array woes - Mailing list pgsql-novice

From Helge Bahmann
Subject Re: portiny mysql to postgres, pg_fetch_array woes
Date
Msg-id Pine.LNX.4.21.0111081505100.15958-100000@lothlorien.stunet2.tu-freiberg.de
Whole thread Raw
In response to portiny mysql to postgres, pg_fetch_array woes  (ben palmer <ben@thatgame.com>)
List 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 by date:

Previous
From: ben palmer
Date:
Subject: portiny mysql to postgres, pg_fetch_array woes
Next
From: Isaac Sparrow
Date:
Subject: Re: X manager?