Get current post featured image ID

Sounds like you’re looking for get_post_thumbnail_id():

$featuredID = get_post_thumbnail_id();

It returns null if there’s not a featured image, so you may want to add a check for that.

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