jamiecottonuk
Technical User
Hi all,
I want to catch a mysql error, how would I go about doing this?
This is my situation. I have set a field in the db to be unique and therefore if the value from the user form matches one in the db then I want to be able to catch the error and do nothing else if the value from the form does not match a value in the db then insert it into the db
I know this is possible in PHP by doing mysql_errno()
Cheers
I want to catch a mysql error, how would I go about doing this?
This is my situation. I have set a field in the db to be unique and therefore if the value from the user form matches one in the db then I want to be able to catch the error and do nothing else if the value from the form does not match a value in the db then insert it into the db
I know this is possible in PHP by doing mysql_errno()
Cheers