Re: [GENERAL] pg_query & $result re-fill

2008-06-12 Thread Stefan Schwarzer
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

Re: [GENERAL] pg_query & $result re-fill

2008-06-10 Thread Scott Marlowe
On Tue, Jun 10, 2008 at 9:33 AM, Stefan Schwarzer <[EMAIL PROTECTED]> wrote: > 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?

[GENERAL] pg_query & $result re-fill

2008-06-10 Thread Stefan Schwarzer
Hi there, I used to pass a the $result of a pg_query to a function which detects min, max etc. Now, I inserted before that another query which first queries a set of parameters for the selected regions. Only if these parameters are fulfilled for each of the regions, the values of the abov