add_menu_page() with variable function

You have to declare the closure before you call add_menu_page():

$func = function() {
            echo "Done !";
};

add_menu_page('My page','My page','manage_options','my_page', $func );

Note you need PHP 5.3 to do that.

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