Contact form with Jquery and PHP don’t work

From your code:

 $(function() {
        // Validate the contact form
      $('#contactform').validate({

WordPress loads jQuery in “no conflict” mode, meaning that the “$” symbol is not defined.

Change the “$” to the proper full “jQuery” or use a no conflict wrapper.

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