Received: from shiva.indiaone.com (shiva.indiaone.com [209.150.128.98]) by hub.org (8.9.3/8.9.3) with ESMTP id HAA40344 for ; Fri, 2 Jun 2000 07:01:24 -0400 (EDT) (envelope-from pragatis@sapientinfotech.com) Received: from schindler.sapientintra.com ([203.197.23.23]) by shiva.indiaone.com (8.8.5/8.8.5) with ESMTP id GAA28037 for ; Fri, 2 Jun 2000 06:01:17 -0500 Received: from pragatis (pragati.sapientintra.com [192.147.160.46]) by schindler.sapientintra.com (8.8.7/8.8.7) with SMTP id QAA06891 for ; Fri, 2 Jun 2000 16:29:56 +0530 Message-ID: <001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com> From: "Pragati Sagar" To: Subject: Accessing the database Date: Fri, 2 Jun 2000 16:35:29 +0530 Organization: Sapient MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200006/24 Hi! I connecting the postgreSQL database through the following code: ","","","",""); $index=pg_exec($conn,"select * from table1"); ?> On execution of this code from the browser, following error appears : Warning: PostgresSQL query failed: ERROR: table1: Permission denied. in /home/httpd/html/script.php3 on line 8 Where am I going wrong? Does the code have a problem or there is something wrong with the permissions. Please help me out. Thanks Pragati