Retrieving post ID from current page

You can use get_the_ID(); function to fetch the Id of the current post

For more Please visit here

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