How to find out what “Blog pages show at most” is set to [duplicate]

You can get that value with

get_option('posts_per_page');

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