Re: PHP & PostgreSQL - Mailing list pgsql-general

From Chris Boget
Subject Re: PHP & PostgreSQL
Date
Msg-id 031a01c2b009$4ab7d0f0$8c01a8c0@ENTROPY
Whole thread Raw
In response to PHP & PostgreSQL  ("Boget, Chris" <chris@wild.net>)
List 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


pgsql-general by date:

Previous
From: "Jules Alberts"
Date:
Subject: Re: PHP & PostgreSQL
Next
From: "Matthew Nuzum"
Date:
Subject: Re: PHP & PostgreSQL