the paged param is allways 0

The get_query_var() function is looking at the main query for the page, which you are not actually using here. You’re using a custom query. So, try looking at what is in $result instead.

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