Determining Errors

Determining Errors

am 30.10.2005 04:17:21 von Mag Gam

SXMgdGhlcmUgYSB3YXkgdG8gYXZvaWQgdGhpcyBlcnJvci93YXJuaW5nICBt
ZXNzYWdlCgpXYXJuaW5nOiBwZ19xdWVyeSgpOiBRdWVyeSBmYWlsZWQ6IEVS
Uk9SOiBkdXBsaWNhdGUga2V5IHZpb2xhdGVzCnVuaXF1ZSBjb25zdHJhaW50
ICJjYXRlZ29yeV9uYW1lX2tleSIgaW4gZm9vLnBocCBvbiBsaW5lIDEyCgpJ
IHdvdWxkIGxpa2Ugc29tZXRoaW5nIGxpa2UsIHRoaXMgYWxyZWFkeSBleGlz
dHMsIHBsZWFzZSByZXRyeS4KU29tZXRoaW5nIHNpbXBsZSBsaWtlIHRoYXQu
Li4uCkV2ZW4gYSBwb3B1cCBib3ggd291bGQgYmUgbmljZSB3aGVuIHByZXNz
ICdzdWJtaXQnIGJ1dHRvbi4KCgpUSUEhCgotLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0oZW5kIG9mIGJyb2FkY2FzdCktLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0KVElQIDU6IGRvbid0IGZvcmdldCB0byBpbmNyZWFzZSB5b3Vy
IGZyZWUgc3BhY2UgbWFwIHNldHRpbmdzCg==

Re: Determining Errors

am 30.10.2005 05:58:59 von Christopher Kings-Lynne

Check example 36-1 at the bottom of this page:

http://developer.postgresql.org/docs/postgres/plpgsql-contro l-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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Re: Determining Errors

am 30.10.2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