Re: Error code

Chris <[email protected]> Tue, 22 Sep 2009 11:00:45 +1000
Newsgroups gmane.comp.db.postgresql.php
Message-ID <[email protected]>
Gustavo Amarilla Santacruz wrote:
> Hello all.
> 
> How I can get the postgres error code from PHP?. I can get the error 
> text, but I need error code to verbose ( and country dependient) messages.

http://www.php.net/manual/en/function.pg-result-error-field.php

seems to be the best fit.

-- 
Postgresql & php tutorials
http://www.designmagick.com/


-- 
Sent via pgsql-php mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php