Returning Error Code using PHP and POSTGRES

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
markbeadle
Forum Commoner
Posts: 29
Joined: Tue Dec 02, 2003 2:50 am
Location: Aachen, Germany

Returning Error Code using PHP and POSTGRES

Post by markbeadle »

More for my information than requiring it at this moment...

The postgresSQL manual indicates that you should try to obtain error codes rather than error messages. (I currently always use pg_last_error which returns the error message).

Is there any way to get the error code ?

This would be more useful for Internationalisation.

Regards
Mark
Post Reply