Get number of comments per page

From quick look at core that would probably be get_option('comments_per_page').

However WP functions just use this internally, why not just let them take care of it? You are not describing why do you need to handle this directly.

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