postgres error - Mailing list pgsql-interfaces

From Anjan Borthakur
Subject postgres error
Date
Msg-id Pine.LNX.4.10.10002291607520.30364-100000@mailserver.bombay.retortsoft.com
Whole thread Raw
List pgsql-interfaces
hi,

i am running php3,apache1.3.9,postgresql6.4 on a redhat 6.0 m/c.
i have written php scripts to connect to a postgres database to
access data on aweb environment.
when i connect to a table i am not supposed to , i get a postgresql
error saying operation not allowed.

1)how can i trap this error,so that i can write codes to return some
of my own error message rather than the back end one ?

2)how can i get   grant /revoke permissions for a user through a php
script(for that matter any cgi script)? 
\z doesn't seem to give anything.

any help regarding this will be highly appreciated.

-anjan  



pgsql-interfaces by date:

Previous
From: Rob Brown-Bayliss
Date:
Subject: useing strings for cursors with libpq
Next
From: Willy De la Court
Date:
Subject: Serious problem with the odbc driver and VFP