How to let a user choose an authors and save it to the database?

How to let a user choose an authors and save it to the database?

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