Re: [PHP-DB] Trap error

2004-08-24 Thread John Holmes
From: "Mário Gamito" <[EMAIL PROTECTED]> I have this form to submit a string to a postgreSQL table. This table has UNIQUE property, so if someone tries to insert the same value more than once, PHP says: "Warning: pg_exec(): Query failed: ERROR: duplicate key violates unique constraint "urls_nega

[PHP-DB] Trap error

2004-08-24 Thread Mário Gamito
Hi, I have this form to submit a string to a postgreSQL table. This table has UNIQUE property, so if someone tries to insert the same value more than once, PHP says: "Warning: pg_exec(): Query failed: ERROR: duplicate key violates unique constraint "urls_negados_url_negado_key" . in /var/www/ht