pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pragati Sagar <pragatis@sapientinfotech.com>
To: pgsql-admin@postgresql.org
Subject: Accessing the database
Date: Fri, 2 Jun 2000 16:35:29 +0530
Message-ID: <001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com> (raw)

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




view thread (3+ messages)  latest in thread

Message-ID: <001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com>
Permalink:  ../001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com/
Also on:    postgresql.org/message-id/001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pragatis@sapientinfotech.com
  Subject: Re: Accessing the database
  In-Reply-To: <001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com>
  References: <001e01bfcc82$76b8caa0$2ea093c0@sapientinfotech.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox