Two settings_fields in one form

take a look at https://tommcfarlin.com/multiple-sections-on-wordpress-options-pages/

You can…

add_settings_section("owlish_license", "SECTION NAME", null, "theme-options");
add_settings_section("owlish_settings_group", "SECTION NAME 2", null, "theme-options");

add_settings_field("owlish_display_notes", "Display Notes", "callback1", "theme-options", "owlish_license");
register_setting('owlish_settings_all','owlish_display_notes');

add_settings_field("owlish_display_notes2", "Display Notes 2", "callback2", "theme-options", "owlish_settings_group");
register_setting('owlish_settings_all','owlish_display_notes2');

after you can use this wrapper on page

settings_fields("owlish_settings_all");
do_settings_sections("theme-options");

Have a nice day.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)