Re: pg_query & $result re-fill

From: Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_query & $result re-fill
Date: 2008-06-12 13:53:55
Message-ID: 36DDB771-164B-4802-8D69-93A894D248FE@grid.unep.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>> Here I would like to check:
>>
>> IF param1 < 75 THEN region-in-$result-should-be-set-to-NULL
>
> Not sure I get what all you're wanting to do from your message, but
> could you use a case statement in sql to do this? Or put it in the
> where clause?

I knew it too be a bit complicated to explain....

Basically, it's more a PHP question, I guess. And that is if there is
a way to "infiltrate" the $result and change values within. Something
like

$result[2][6] = "other value";

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2008-06-12 14:26:57 Re: Unable to dump database using pg_dump
Previous Message luca.ciciriello 2008-06-12 13:37:28 defining a variable