Sussex_Chris
02-17-2010, 01:48 PM
I have a column with a primary & unique key.
If I turn on or die(mysql_error()) I get the following error:
Duplicate entry '1571827683' for key 'PRIMARY'
Without the or die error it simply doesn't insert but is there a way for PHP to detect how many ID's were actually inserted by returning error codes?
If I turn on or die(mysql_error()) I get the following error:
Duplicate entry '1571827683' for key 'PRIMARY'
Without the or die error it simply doesn't insert but is there a way for PHP to detect how many ID's were actually inserted by returning error codes?