dbTalk Databases Forums  

[PHP] Determining Errors

mailing.database.pgsql-php mailing.database.pgsql-php


Discuss [PHP] Determining Errors in the mailing.database.pgsql-php forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mag Gam
 
Posts: n/a

Default [PHP] Determining Errors - 10-29-2005 , 10:25 PM






SXMgdGhlcmUgYSB3YXkgdG8gYXZvaWQgdGhpcyBlcnJvci93YX JuaW5nICBt
ZXNzYWdlCgpXYXJuaW5nOiBwZ19xdWVyeSgpOiBRdWVyeSBmYW lsZWQ6IEVS
Uk9SOiBkdXBsaWNhdGUga2V5IHZpb2xhdGVzCnVuaXF1ZSBjb2 5zdHJhaW50
ICJjYXRlZ29yeV9uYW1lX2tleSIgaW4gZm9vLnBocCBvbiBsaW 5lIDEyCgpJ
IHdvdWxkIGxpa2Ugc29tZXRoaW5nIGxpa2UsIHRoaXMgYWxyZW FkeSBleGlz
dHMsIHBsZWFzZSByZXRyeS4KU29tZXRoaW5nIHNpbXBsZSBsaW tlIHRoYXQu
Li4uCkV2ZW4gYSBwb3B1cCBib3ggd291bGQgYmUgbmljZSB3aG VuIHByZXNz
ICdzdWJtaXQnIGJ1dHRvbi4KCgpUSUEhCgotLS0tLS0tLS0tLS 0tLS0tLS0t
LS0tLS0tLS0oZW5kIG9mIGJyb2FkY2FzdCktLS0tLS0tLS0tLS 0tLS0tLS0t
LS0tLS0tLS0KVElQIDU6IGRvbid0IGZvcmdldCB0byBpbmNyZW FzZSB5b3Vy
IGZyZWUgc3BhY2UgbWFwIHNldHRpbmdzCg==

Reply With Quote
  #2  
Old   
Christopher Kings-Lynne
 
Posts: n/a

Default Re: [PHP] Determining Errors - 10-30-2005 , 12:14 AM






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

http://developer.postgresql.org/docs...ERROR-TRAPPING

Chris

Mag Gam wrote:
Quote:
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.