Creating new page overwrites old page

Are you using loop before getting content from WordPress? Like this one:

<?php if( have_posts() ): while( have_posts() ): the_post(); ?>

You content goes here

<?php endwhile; endif; ?>

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