How can I use query_posts to loop through posts and construct my own content?

How can I use query_posts to loop through posts and construct my own content?

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