Passing user enetered value in widget: number of words, for example

You can’t pass this variable to the_title() but you can simply wrap it in wp_trim_words function.

echo wp_trim_words( get_the_title(), $number_of_words );

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