How to get the POST TITLE using the POST ID?

WordPress has a ton of the get_the_*() functions which you can pass an ID and return a value you’re looking for. In this case you can call get_the_title() which returns the title of a post. An example could look like:

echo get_the_title( 3249 );

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