Re: Determining Errors

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Mag Gam <magawake(at)gmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Determining Errors
Date: 2005-10-30 04:58:59
Message-ID: 43645313.5070403@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Mag Gam 2005-10-30 13:46:57 Re: Determining Errors
Previous Message Mag Gam 2005-10-30 03:17:21 Determining Errors