How to display something in a div when the user clicks on a text in another div – no page refresh [closed]

How to display something in a div when the user clicks on a text in another div – no page refresh [closed]

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