Custom Nav Walker Displaying Values in Sub Menu

I’ve managed to sort this All I needed to do was remove these lines.

    $output .= "</div>";
    $output .= "</dropdown-link>";
    $output .= "</div>";

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