How to obtain a reference to the_excerpt() from custom loop

I think you have to setup_postdata() with get_posts() to get things that rely on global variables to work. or explicitly pass the post id with the function.

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