Basically I have a table with a couple of columns marked Unique. I have a script that dumps a bunch of values into the table with a command like this:
$this-
Yeah, took me a while too and annoyed the hell out of me:
$db['default']['db_debug'] = FALSE;
... in config/database.php - disables the error page.
config/database.php
After a query ran, use this to check for an error:
if (!empty($this->db->_error_message())) { echo "FAIL"; }