From: Mag Gam <magawake@gmail.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-php@postgresql.org
Subject: Re: Determining Errors
Date: Sun, 30 Oct 2005 08:46:57 -0500
Message-ID: <1cbd6f830510300546r32161c8ew9e37a69e023a1f0b@mail.gmail.com> (raw)
In-Reply-To: <43645313.5070403@familyhealth.com.au>
References: <1cbd6f830510292017h6c7c8477w60e251ba8f2d3b94@mail.gmail.com>
<43645313.5070403@familyhealth.com.au>
Very nice!
Thanks, I think I can run with this.
On 10/29/05, Christopher Kings-Lynne <chriskl@familyhealth.com.au> wrote:
> Check example 36-1 at the bottom of this page:
>
> http://developer.postgresql.org/docs/postgres/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
>
> Chris
>
> Mag Gam wrote:
> > Is there a way to avoid this error/warning message
> >
> > Warning: pg_query(): Query failed: ERROR: duplicate key violates
> > unique constraint "category_name_key" in foo.php on line 12
> >
> > I would like something like, this already exists, please retry.
> > Something simple like that....
> > Even a popup box would be nice when press 'submit' button.
> >
> >
> > TIA!
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
>
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: magawake@gmail.com, chriskl@familyhealth.com.au
Subject: Re: Determining Errors
In-Reply-To: <1cbd6f830510300546r32161c8ew9e37a69e023a1f0b@mail.gmail.com>
References: <1cbd6f830510292017h6c7c8477w60e251ba8f2d3b94@mail.gmail.com> <43645313.5070403@familyhealth.com.au> <1cbd6f830510300546r32161c8ew9e37a69e023a1f0b@mail.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