AJAX call returns ‘testtest0’ instead of ‘test’ – why?

Ajax callbacks should always finish with a die(), otherwise it will output that 0 you are seeing. I’m not sure why it’s outputting another “test”

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