Skip site navigation (1) Skip section navigation (2)

postgres error

From: Anjan Borthakur <anjan(at)bombay(dot)retortsoft(dot)com>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: postgres error
Date: 2000-02-29 10:50:43
Message-ID: Pine.LNX.4.10.10002291607520.30364-100000@mailserver.bombay.retortsoft.com (view raw or flat)
Thread:
Lists: 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

Next:From: Willy De la CourtDate: 2000-02-29 20:58:39
Subject: Serious problem with the odbc driver and VFP
Previous:From: Rob Brown-BaylissDate: 2000-02-29 09:45:54
Subject: useing strings for cursors with libpq

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group