Thread: psql error message overriding

psql error message overriding

From
Anjan Borthakur
Date:
hi,
i am using postgres,php3 & apache.the preliminary queries are working
fine.i don't want to have the postgresql server error messages when 
connection or query fails,instead i want customized error
messages.how do i do it?

iam using if (!conn) { some message;   exit; } 
but error message coming is unable to connect to the database specified.
why  this if statement is not working.
can anybody help me out?
-anjan