From: | "Chris Boget" <chris(at)wild(dot)net> |
---|---|
To: | "Diogo de Oliveira Biazus" <diogo(at)ikono(dot)com(dot)br> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: PHP & PostgreSQL |
Date: | 2002-12-30 13:42:21 |
Message-ID: | 031a01c2b009$4ab7d0f0$8c01a8c0@ENTROPY |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> In the PGSQL fetch functions, you usualy pass the row number
> as a parameter. So you can iterate through the table as many times
> as you want, just create a counter to control the iteration.
Hmm, I guess I could do it that way. I just prefer using
while( $row = pg_fetch_array()) {
> * For PGSQL, you can get the database name, the field name
> even the *host name* but you can't get the table name from a
> particular query?
> I'm afraid that's true, at least I don't know such a function.
Ok, that's what I was afraid of...
> But I advise you to try the PEAR DB extension from PHP,
> instead of using directly the database functions.
I am starting to use PEAR and will from here on out. The switch
over is a nightmare having to change all the code (and the logic).
Chris
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Nuzum | 2002-12-30 14:15:16 | Re: PHP & PostgreSQL |
Previous Message | Jules Alberts | 2002-12-30 13:18:28 | Re: PHP & PostgreSQL |