PHP pg_fetch_assoc() complaining about parameters
Collins Richey
crichey
Tue Jul 24 17:41:04 PDT 2007
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.
--
Collins Richey
If you fill your heart with regrets of yesterday and the worries
of tomorrow, you have no today to be thankful for.
More information about the Linux-users
mailing list