Redirect plugin after form submit or show errors

well it looks like I worked this out.

On the actual admin page I need to declare my $errors array as global as well

global $errors;

I guess wordpress must somehow box the admin page into a function and so the $errors array was not referencing the global var.

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