[PHP] Handling Database errors in php

2003-12-05 Thread manoj nahar
Hi guys, Column of table defined as primary key. there is violation and error message from database. 1) First way is to check if the value is already in database and then contuninue with insert (this invloes an extra select for every insert and leaves defined primary key redundant)

[PHP] R: [PHP] Handling Database errors in php

2003-12-05 Thread Alessandro Vitale
both of the query should be designed for not to raise any error cheers. alessandro -Messaggio originale- Da: manoj nahar [mailto:[EMAIL PROTECTED] Inviato: venerdì 5 dicembre 2003 13.07 A: [EMAIL PROTECTED] Oggetto: [PHP] Handling Database errors in php Hi guys, Column of table defined