Where should I start looking if I want to implement my own custom search?

Where should I start looking if I want to implement my own custom search?

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