Accessing the database

From: "Pragati Sagar" <pragatis(at)sapientinfotech(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Accessing the database
Date: 2000-06-02 11:05:29
Message-ID: 001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bob Cregan 2000-06-02 12:04:55 Error message on loading
Previous Message Anthony E. Greene 2000-06-02 10:22:08 [OT] How to avoid using Reply-All on this list