Conditonal tag or work around to identify page number of pagnation

You can use

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

to get current page number

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