Two loops on different pages do the same thing, but only one page works

Two loops on different pages do the same thing, but only one page works

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