Re: php + postgresql

From: admin <mick(at)mjhall(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: php + postgresql
Date: 2008-07-25 08:07:05
Message-ID: 488989A9.6050602@mjhall.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Bog 2008-07-25 08:09:51 Re: High activity short table and locks
Previous Message valgog 2008-07-25 07:31:06 Re: invalid byte sequence for encoding "UNICODE"