[eluser]BlueCamel[/eluser]
[quote author="tonanbarbarian" date="1200621689"]
There is no code to get the error message from the database. Which I actually do not have a real problem with.
1. CI by default has full error checking on in PHP so it will display the error from mysql for you.
2. In the live site you should not be getting any errors or if you do you should be able to anticipate exactly what the error is
You can use
Code:
$this->db->display_error('my message');
to display your own error message.[/quote]
Sure, the return values are easy enough. It would be helpful thuogh that if I didn't get a return value expected that I could check the sql error and see if it was due to a badly formed query, out of memory, or some other oddness. Of course, this would need to be sanitized into a user consumable error indicating if they should try again later or if they should give up and go home for the day.
Oh, I did find in the database config (iirc) where I can disable display sql errors, which is definitely helpful.