X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 6FB17CB56A for ; Sun, 13 Jul 2003 06:02:45 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 00748-01 for ; Sun, 13 Jul 2003 06:02:34 +0000 (GMT) Received: from advancecreations.com (unknown [198.49.126.89]) by svr1.postgresql.org (Postfix) with SMTP id EF8D0CB8E5 for ; Sun, 13 Jul 2003 03:02:11 -0300 (ADT) Received: (qmail 20322 invoked from network); 13 Jul 2003 06:02:33 -0000 Received: from slkcdslgw7poolc24.slkc.uswest.net (HELO ?192.168.150.4?) (65.100.200.24) by advancecreations.com with SMTP; 13 Jul 2003 06:02:33 -0000 Subject: Re: pg_query undefined? From: Ray Hunter Reply-To: rhunter@venticon.com To: pgsql-php@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: Venticon Consulting Message-Id: <1058076012.5117.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 13 Jul 2003 00:00:12 -0600 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/21 X-Sequence-Number: 2133 Also make sure that pgsql is installed in php. By checking the phpinfo() function u can verify your php version (4.2+) and if pgsql has been compiled into php. If you have 4.2 or higher than u might need to compile pgsql into php. -- Ray On Sat, 2003-07-12 at 16:54, Lynna Landstreet wrote: > Does anyone know why trying to run a simple demo script (the one that came > with EZ_SQL from php.justinvincent.com) would be giving me an error saying > that pg_query() is an undefined function? It's a standard function built > into PHP, isn't it? It's listed in the manual... > > I know the installation of PHP at our web host does have PostgreSQL support, > because when I ran phpinfo() it seemed to say all the right things about it, > so this is really confusing me. > > > Lynna