Remove the whole menu in the admin

add_action('admin_head', 't5_hide_menu');
function t5_hide_menu()
{
    $GLOBALS['menu'] = array();
    ?>
<style>#adminmenuback,#adminmenuwrap{display:none !important}
#wpcontent, #footer{margin-left:0 !important}</style>
<?php
}

Now I want to know: why? 🙂

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