X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4D105D1DD41 for ; Mon, 1 Mar 2004 22:29:25 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 25648-07 for ; Mon, 1 Mar 2004 18:29:24 -0400 (AST) Received: from dnscache2.syd.nexon.com.au (dnscache2.syd.nexon.com.au [210.215.48.100]) by svr1.postgresql.org (Postfix) with ESMTP id DB871D1DD11 for ; Mon, 1 Mar 2004 18:29:19 -0400 (AST) Received: from chris ([210.215.130.98]) by dnscache2.syd.nexon.com.au (8.12.8p1/8.12.8) with ESMTP id i21JRNpl025749; Tue, 2 Mar 2004 06:27:24 +1100 (EST) (envelope-from chris@interspire.com) From: "Chris Smith" To: "'Michael Glaesemann'" , Subject: Re: SQLSTATE in PHP? Date: Tue, 2 Mar 2004 09:29:16 +1100 Message-ID: <000601c3ffdc$a25b3440$0d00a8c0@chris> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-reply-to: <45EF7AF0-6B63-11D8-89E9-000A95C88220@myrealbox.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/7 X-Sequence-Number: 2606 Hi Michael, That mysql function looks like it's bleeding edge, so there won't be a postgres equivalent yet. Might be better off asking on the php-dev mailing list about it.. Chris. -----Original Message----- From: pgsql-php-owner@postgresql.org [mailto:pgsql-php-owner@postgresql.org] On Behalf Of Michael Glaesemann Sent: Monday, March 01, 2004 8:32 PM To: pgsql-php@postgresql.org Subject: [PHP] SQLSTATE in PHP? Hey all, I've been looking for a way to get the SQLSTATE PostgreSQL error code from within PHP to build better error-handling within my web front-ends. However, I've been unable to find anything. There is similar functionality for MySQL in the PHP mysqli_sqlstate() function. Anyone know of a way to get these error codes from within PHP? Or is this a missing feature in PHP's PostgreSQL support? Thanks for any feedback. Michael Glaesemann grzm myrealbox com ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly