Re: pg_query & $result re-fill - Mailing list pgsql-general

From Stefan Schwarzer
Subject Re: pg_query & $result re-fill
Date
Msg-id 36DDB771-164B-4802-8D69-93A894D248FE@grid.unep.ch
Whole thread Raw
In response to Re: pg_query & $result re-fill  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List 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";



pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: array column and b-tree index allowing only 8191 bytes
Next
From: luca.ciciriello@email.it
Date:
Subject: defining a variable