PHP pg_fetch_assoc() complaining about parameters

Lonni J Friedman netllama
Wed Jul 25 08:34:34 PDT 2007


On 7/24/07, Collins Richey <crichey at gmail.com> wrote:
> On 7/24/07, Steve Jardine <sjardine at acm.org> wrote:
> > Lonni,
> >
> >     Did you try getting rid of the quotes around the grabdata call?
> >
> >     I.e. : grabData ($r_fdtd);
> >
> >     I do not believe that the resource value that is returned from a pg_exec is a string. I believe it is a value. That is why it is used as a "resource" for pg_fetch_row, pg_fetch_assoc, etc. Try passing it as a "resource", which I think is a typed integer value. Might be wrong on that though.
> >
>
> I agree with Steve.
>
> Also, I can't find anything in PHP manuals that allows
>
>     grabData ($r_fdtd) { ... }
>
> rather than
>
>     function grabData ($r_fdtd) { ... }
>
> Maybe I'm behind the times.

You're confusing a function declaration with a function call.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       http://netllama.linux-sxs.org



More information about the Linux-users mailing list