尝试这些CI功能
$this->db->_error_message(); (mysql_error equivalent)$this->db->_error_number(); (mysql_errno equivalent)
更新
不建议使用函数,而应使用“ error()”:
$this->db->error();

尝试这些CI功能
$this->db->_error_message(); (mysql_error equivalent)$this->db->_error_number(); (mysql_errno equivalent)
更新
不建议使用函数,而应使用“ error()”:
$this->db->error();