retrieving page content per AJAX [duplicate]

the problem was the $ not defined, toscho comment was right

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