Thank you, Bill.
I can not use the numeric error code such as 23505 ( by coding convention ); I need to do this:
------------------------ CODE -----------------------------------------------------------
include( "PostgresqlErrorList.php" );
.
.
.
if( $errorCode == $UNIQUE_VIOLATION )
echo( "message" );
------------------------ CODE -----------------------------------------------------------
Here, "PostgresqlErrorList.php" is a file included in PHP libraries. This file would can contain code such as:
<php?
$UNIQUE_VIOLATION = 23505;
$DATETIME_FIELD_OVERFLOW = 22008;
.
.
.
?>
Exists this file for in Postgresql-PHP library?
ISMEB