I have an Codeigniter app (using version 2.1.0) that is writing a transaction to a mysql database. I m fairly sure that I ve got a foreign key constraint error occurring, but I can find no way to make CI tell me the specific error. mysql_error() comes back empty.
Can anyone tell me how to get Codeigniter to tell me the mysql error message?