My post repeats itself on the second page [closed]

Use this code instead for query post. Parameter ‘paged’ is which that keep track of the pagination so you have to pass it on query posts.

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
                'cat' => 0,
                'paged' => $paged
                );
query_posts($args);

Also try to avoid query_posts() unless its absolutely necessary. Use get_posts().

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