web interface php3 question.

From: "Rich(dot)Martin" <Rich(dot)Martin(at)wcom(dot)com>
To: pgsql-interfaces(at)hub(dot)org
Subject: web interface php3 question.
Date: 2000-10-30 18:19:23
Message-ID: NEBBKOBMMLNPECJCBIJGGEAOCCAA.Rich.Martin@wcom.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello,
I'm trying to setup a web page that calls a PostgreSQL database. I'm
connecting to the database ok. Does anyone know if php3 support
pg_fetch_array? I keep getting an error that says:

Warning: Wrong parameter count for pg_fetch_array() in
/home/contacts/whole.phtml on line 72

I'm calling it in the code like this:

while ($r = pg_fetch_array($result)) {$company = $r["company'];

if I add a another variable like this:

while ($r = pg_fetch_array($result, 7)) {$company = $r["company'];

the resulting page takes forever to load and repeats the first entry to the
database. I know that the server I'm using has php3 on it. Is that the
problem?

If you have a solution please let me know.
Thanks,
Rich

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Adam Lang 2000-10-30 18:42:03 Re: web interface php3 question.
Previous Message Frank Jördens 2000-10-30 15:30:49 Re: confused about *nix ODBC drivers