A field with dashes in the slug [closed]

Try this:

$user_data = get_userdata( $user_id );
$user_data->{'date-of-birth'};

It’s weird looking but should work. 🙂

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