pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris <dmagick@gmail.com>
To: Gustavo Amarilla Santacruz <gusamasan@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Error code
Date: Tue, 22 Sep 2009 11:00:45 +1000
Message-ID: <4AB821BD.6070508@gmail.com> (raw)
In-Reply-To: <e4ea2d810909210756s547417d6x7ecfb1d8300623e8@mail.gmail.com>
References: <e4ea2d810909210756s547417d6x7ecfb1d8300623e8@mail.gmail.com>

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/




view thread (7+ messages)  latest in thread

Message-ID: <4AB821BD.6070508@gmail.com>
Permalink:  ../4AB821BD.6070508@gmail.com/
Also on:    postgresql.org/message-id/4AB821BD.6070508@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: dmagick@gmail.com, gusamasan@gmail.com
  Subject: Re: Error code
  In-Reply-To: <4AB821BD.6070508@gmail.com>
  References: <e4ea2d810909210756s547417d6x7ecfb1d8300623e8@mail.gmail.com> <4AB821BD.6070508@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox