How to add specific script to WordPress webpage that will working with user input and databases

How to add specific script to WordPress webpage that will working with user input and databases

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