PHP Classes

what about errors on inserts?

Recommend this page to a friend!

      SQL Manager  >  All threads  >  what about errors on inserts?  >  (Un) Subscribe thread alerts  
Subject:what about errors on inserts?
Summary:if inserting causes a duplicate key - then what happens?
Messages:1
Author:MrBrad
Date:2012-03-25 15:52:37
 

  1. what about errors on inserts?   Reply   Report abuse  
Picture of MrBrad MrBrad - 2012-03-25 15:52:37
I looked at your class for handling MySQL and while you had 'try and catch' for the opening of the database - there was no such construct for the inserts or other SQL operations. In my experience when inserting into a DB there needs to be some handling of inserts that cause a 'duplicate key' error condition.