Received: from hub.org (hub.org [216.126.84.1]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id e9UIFtC40285 for ; Mon, 30 Oct 2000 13:15:55 -0500 (EST) (envelope-from pgsql-interfaces-owner@mail.postgresql.org) Received: from dgesmtp01.wcom.com (dgesmtp01.wcom.com [199.249.16.16]) by hub.org (8.10.1/8.11.0) with ESMTP id e9UIFHi39651 for ; Mon, 30 Oct 2000 13:15:18 -0500 (EST) (envelope-from Rich.Martin@wcom.com) Received: from CONVERSION-DAEMON by firewall.mcit.com (PMDF V5.2-33 #42260) id <0G39008019C93P@firewall.mcit.com> for pgsql-interfaces@hub.org; Mon, 30 Oct 2000 18:14:33 +0000 (GMT) Received: from pmismtp01.wcomnet.com ([166.38.62.36]) by firewall.mcit.com (PMDF V5.2-33 #42260) with ESMTP id <0G39004NH9C94K@firewall.mcit.com> for pgsql-interfaces@hub.org; Mon, 30 Oct 2000 18:14:33 +0000 (GMT) Received: from CONVERSION-DAEMON by pmismtp01.wcomnet.com (PMDF V5.2-33 #42258) id <0G3900K019C8GL@pmismtp01.wcomnet.com> for pgsql-interfaces@hub.org; Mon, 30 Oct 2000 18:14:32 +0000 (GMT) Received: from pmismtp01.wcomnet.com by pmismtp01.wcomnet.com (PMDF V5.2-33 #42258) with SMTP id <0G3900K019C6FT@pmismtp01.wcomnet.com> for pgsql-interfaces@hub.org; Mon, 30 Oct 2000 18:14:32 +0000 (GMT) Received: from richmartin ([166.34.156.229]) by pmismtp01.wcomnet.com (PMDF V5.2-33 #42258) with SMTP id <0G3900JF79BX62@pmismtp01.wcomnet.com> for pgsql-interfaces@hub.org; Mon, 30 Oct 2000 18:14:22 +0000 (GMT) Date: Mon, 30 Oct 2000 11:19:23 -0700 From: "Rich.Martin" Subject: web interface php3 question. To: pgsql-interfaces@hub.org Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=Windows-1252 Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Archive-Number: 200010/9 X-Sequence-Number: 9 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