Skip site navigation (1) Skip section navigation (2)

Re: Error code

From: Chris <dmagick(at)gmail(dot)com>
To: Gustavo Amarilla Santacruz <gusamasan(at)gmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Error code
Date: 2009-09-22 01:00:45
Message-ID: 4AB821BD.6070508@gmail.com (view raw or flat)
Thread:
Lists: pgsql-php
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/


In response to

  • Error code at 2009-09-21 14:56:17 from Gustavo Amarilla Santacruz

Responses

  • Re: Error code at 2009-09-22 13:17:21 from Gustavo Amarilla Santacruz

pgsql-php by date

Next:From: Gustavo Amarilla SantacruzDate: 2009-09-22 13:17:21
Subject: Re: Error code
Previous:From: Gustavo Amarilla SantacruzDate: 2009-09-21 14:56:17
Subject: Error code

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group