Determining Errors - Mailing list pgsql-php

From Mag Gam
Subject Determining Errors
Date
Msg-id 1cbd6f830510292017h6c7c8477w60e251ba8f2d3b94@mail.gmail.com
Whole thread Raw
Responses Re: Determining Errors
List pgsql-php
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!

pgsql-php by date:

Previous
From: reiner peterke
Date:
Subject: Re: copy error
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: Determining Errors