Concatenate a Function to the Post Content

Your function needs to return the result. echo just outputs it into a page source and no result is produced to be concatenated.

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