Script not working in WordPress [duplicate]

Your script doesn’t work because you’re using $. When WordPress loads jQuery, it does so using no-conflict mode. This disables the $. Replace is with a jQuery instead.

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