Getting post id in for loop

If you’re looking to get the post id to say add it to a div use the_ID()

<div id="post-<?php the_ID(); ?>">

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