Get widget Title from widget id

You can get the widget name from the widget id with this:

<?php
    global $wp_registered_widgets;
    $id = 'recent-comments-1';  // example
    if ( isset($wp_registered_widgets[$id]['name']) ) {
        echo $wp_registered_widgets[$id]['name'];
    }
?>

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