Query wordpress posts on static page

By static page do you mean a WP page or do you mean a HTML page within the site?

If it’s the first you need a page template, if it’s the latter then you need to include wp-blog-header.php into the file with php.

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