next and previous year month and day for archive page

thank u all
i just did a simple code to get what i want

<?php 
$prevyear = date('2150') - 0001;
$nextyear = date('2150') + 0001;
$prevmonth = date('01') - 01;
$nextmonth = date('01') + 01;
echo echo get_year_link($prevyear)."<br />".get_year_link($nextyear)."<br />".get_year_link($prevmonth)."<br />".get_year_link($nextmonth)."<br />";
?>

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