CI_DB_mysql_driver::error PHP Method

error() public method

Returns an array containing code and message of the last database error that has occured.
public error ( ) : array
return array
    public function error()
    {
        return array('code' => mysql_errno($this->conn_id), 'message' => mysql_error($this->conn_id));
    }