Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id F2E1F6347F2 for ; Mon, 21 Sep 2009 22:03:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 31870-01-8 for ; Tue, 22 Sep 2009 01:03:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f171.google.com (mail-px0-f171.google.com [209.85.216.171]) by mail.postgresql.org (Postfix) with ESMTP id CEE36634C2A for ; Mon, 21 Sep 2009 22:00:54 -0300 (ADT) Received: by pxi1 with SMTP id 1so2849144pxi.1 for ; Mon, 21 Sep 2009 18:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=f/KBKnTdTOF+J1mjoqmuTt1wobACicQtkcg8iM4M7/s=; b=ivuMyGOYbqCImjyIfAejIf4rWJcCE6moYIaIwHmQPROIA7ODQmsw1AfGt59R6pxhTx DV1QDGwv12C4UfkxZniz0vOoXgacXH7iJMy0qbwH9L+nuOUbVByeP4oKc+uzJvnvJZEX ytIRwvUAq5OgLUQcP/CI8i9kkI7h7gSazXuok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=XQrIZMQMtc7wXiXSQkQ0qbpmM1aUHBwGtC1V1hNin4khCp/GbTDPips6lwNLVl4NtD VvYoYoNtlPOqZV0sl5gZXV+Kq5eztLw2SzRhdLDMGCRlMRJdGy7SvJgIudmsOnjD7iNe 708cmPQYsRowoyxQdW13jH6NlumkNc8LfSRng= Received: by 10.115.102.16 with SMTP id e16mr510520wam.202.1253581252716; Mon, 21 Sep 2009 18:00:52 -0700 (PDT) Received: from ?192.168.2.65? (office.squiz.net [203.206.128.174]) by mx.google.com with ESMTPS id 21sm322931pzk.7.2009.09.21.18.00.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 21 Sep 2009 18:00:51 -0700 (PDT) Message-ID: <4AB821BD.6070508@gmail.com> Date: Tue, 22 Sep 2009 11:00:45 +1000 From: Chris User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Gustavo Amarilla Santacruz CC: pgsql-php@postgresql.org Subject: Re: Error code References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.855 tagged_above=-10 required=5 tests=AWL=-0.745, BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 200909/16 X-Sequence-Number: 4074 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/