Organizational Research By

Surprising Reserch Topic

is it possible to see mysql_error() on Codeigniter?


i have an Codeigniter app (latest version of CI) 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.


asked Jun 1, 2015 in codeinither by rajesh
0 votes
131 views



Related Hot Questions

1 Answer

0 votes
 
Best answer

Yes, this is the mysql_error() wrapper.

$this->db->_error_message();

And the mysql_errno wrapper is:

$this->db->_error_number();
answered Jun 1, 2015 by rajesh

...