Re: php + postgresql - Mailing list pgsql-general

From admin
Subject Re: php + postgresql
Date
Msg-id 488989A9.6050602@mjhall.org
Whole thread Raw
In response to Re: php + postgresql  (Chris <dmagick@gmail.com>)
List pgsql-general
> You need something like this:
>
> $query = "select id, name from tablename";
> $result = pg_query($query);
> while ($row = pg_fetch_array($result)) {
>   $content = $row[0];
> }

That's actually what I was using.
The scoping wasn't the issue either.

Today I switched back to pg_connect() from pg_pconnect(), made some
changes to my overall architecture and re-wrote my database stuff. Then
re-booted.

Not sure what fixed it but all working now. I'm only working on a draft
"skeleton" right now so am free to fiddle.

Keep finding cool features in PostgreSQL, I think I'm sold!

Thanks
Mick

pgsql-general by date:

Previous
From: valgog
Date:
Subject: Re: invalid byte sequence for encoding "UNICODE"
Next
From: "Guillaume Bog"
Date:
Subject: Re: High activity short table and locks