How to Connect my Users to a custom post type I Labelled Campaign

You can use the update_user_meta function in WordPress to store information about the user’s interest in promoting a campaign

// Assuming $user_id is the current user's ID and $campaign_id is the ID of the campaign.

update_user_meta($user_id, 'promoted_campaigns', $campaign_id, true);

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