WordPress 4.1 plugin only save 1 field to database

I’ve found out that having mulitple settings_fields wouldn’t work. So in register_setting I use the same group name and now all the fields are updated correctly.

I got it from this http://www.mendoweb.be/blog/wordpress-settings-api-multiple-sections-on-same-page/

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