pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
web interface php3 question.
2+ messages / 2 participants
[nested] [flat]

* web interface php3 question.
@ 2000-10-30 18:19 Rich.Martin <Rich.Martin@wcom.com>
  2000-10-30 18:42 ` Re: web interface php3 question. Adam Lang <aalang@rutgersinsurance.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Rich.Martin @ 2000-10-30 18:19 UTC (permalink / raw)
  To: pgsql-interfaces@hub.org

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: web interface php3 question.
  2000-10-30 18:19 web interface php3 question. Rich.Martin <Rich.Martin@wcom.com>
@ 2000-10-30 18:42 ` Adam Lang <aalang@rutgersinsurance.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Adam Lang @ 2000-10-30 18:42 UTC (permalink / raw)
  To: Rich.Martin <Rich.Martin@wcom.com>; pgsql-interfaces@hub.org

It should work with version 3.  Are there 7 rows of data in the table?  It
might not let you call it if the row doesn't exist.

http://php.net/manual/function.pg-fetch-array.php

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
----- Original Message -----
From: "Rich.Martin" <Rich.Martin@wcom.com>
To: <pgsql-interfaces@hub.org>
Sent: Monday, October 30, 2000 1:19 PM
Subject: [INTERFACES] web interface php3 question.


> 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-10-30 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-10-30 18:19 web interface php3 question. Rich.Martin <Rich.Martin@wcom.com>
2000-10-30 18:42 ` Adam Lang <aalang@rutgersinsurance.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox