Re: Determining Errors - Mailing list pgsql-php

From Christopher Kings-Lynne
Subject Re: Determining Errors
Date
Msg-id 43645313.5070403@familyhealth.com.au
Whole thread Raw
In response to Determining Errors  (Mag Gam <magawake@gmail.com>)
Responses Re: Determining Errors  (Mag Gam <magawake@gmail.com>)
List 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

pgsql-php by date:

Previous
From: Mag Gam
Date:
Subject: Determining Errors
Next
From: Mag Gam
Date:
Subject: Re: Determining Errors