Accessing the database - Mailing list pgsql-admin

From Pragati Sagar
Subject Accessing the database
Date
Msg-id 001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com
Whole thread Raw
Responses Re: Accessing the database
Re: Accessing the database
List pgsql-admin
Hi!
I connecting the postgreSQL database through the following code:

<?
$conn=pg_connect("<IP address>","<port>","","","<database>");
$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


pgsql-admin by date:

Previous
From: "Marcel"
Date:
Subject: CYGWIN1.DLL
Next
From: Bruce Momjian
Date:
Subject: Re: Future plans for raw devices ?