Re: portiny mysql to postgres, pg_fetch_array woes

From: Helge Bahmann <bahmann(at)math(dot)tu-freiberg(dot)de>
To: ben palmer <ben(at)thatgame(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: portiny mysql to postgres, pg_fetch_array woes
Date: 2001-11-08 14:06:43
Message-ID: Pine.LNX.4.21.0111081505100.15958-100000@lothlorien.stunet2.tu-freiberg.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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=(at)pg_fetch_array($Result,$i++))
{
}

(note the @ before pg_fetch_array)

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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Isaac Sparrow 2001-11-08 15:25:04 Re: X manager?
Previous Message Mark McArthey 2001-11-08 13:10:45 X manager?