Welcome Guest, Not a member yet? Register   Sign In
get mysql errors text
#3

https://codeigniter.com/user_guide/datab...ing-errors

Use $this->db->error(), which should return an associative array with the keys 'code' and 'message', which should be self-explanatory.

Under certain conditions, like a connection error, this might not return valid error information. However, in cases like your example, it should provide the information you're looking for.
Reply


Messages In This Thread
get mysql errors text - by mstdmstd - 12-29-2015, 08:12 AM
RE: get mysql errors text - by drik - 12-29-2015, 09:09 AM
RE: get mysql errors text - by mwhitney - 12-29-2015, 10:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB