Received: from newsnipple.com (www.newsnipple.com [208.243.144.102]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f11Mskq97023 for ; Thu, 1 Feb 2001 17:54:46 -0500 (EST) (envelope-from adam@newsnipple.com) Received: by newsnipple.com (Postfix, from userid 1000) id 342E63116E; Thu, 1 Feb 2001 14:52:29 -0800 (PST) Date: Thu, 1 Feb 2001 14:52:28 -0800 From: Adam Haberlach To: pgsql-interfaces@postgresql.org Subject: PHP and error reporting Message-ID: <20010201145228.A4899@newsnipple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Archive-Number: 200102/2 X-Sequence-Number: 952 We've actually started using the database to enforce permissions and referential integrity, and now we actually need to know how to deal with the errors this causes the system to report. Is there a better way to do this then parsing the results from pg_errormessage()? I would really like a way to get a symbolic result, rather then a text one. If I have to, I'll add a hook directly into the error value function and submit it to the PHP source base, but I was wondering if anyone had a simpler way. -- Adam Haberlach |A cat spends her life conflicted between a adam@newsnipple.com |deep, passionate, and profound desire for http://www.newsnipple.com |fish and an equally deep, passionate, and '88 EX500 |profound desire to avoid getting wet.