How to locate the js code and php code for certain function?

How to locate the js code and php code for certain function?

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