Determining Errors

From: Mag Gam <magawake(at)gmail(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: Determining Errors
Date: 2005-10-30 03:17:21
Message-ID: 1cbd6f830510292017h6c7c8477w60e251ba8f2d3b94@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Christopher Kings-Lynne 2005-10-30 04:58:59 Re: Determining Errors
Previous Message reiner peterke 2005-10-26 20:45:33 Re: copy error